mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-23 01:36:33 +00:00
Small fixes [stage]
This commit is contained in:
@@ -64,7 +64,9 @@ public class AppDialog {
|
||||
PlatformThread.runLaterIfNeededBlocking(() -> {
|
||||
modalOverlay.add(o);
|
||||
});
|
||||
waitForDialogClose(o);
|
||||
if (wait) {
|
||||
waitForDialogClose(o);
|
||||
}
|
||||
ThreadHelper.sleep(200);
|
||||
} else {
|
||||
var key = new Object();
|
||||
|
||||
@@ -83,11 +83,15 @@ public abstract class StorageElement {
|
||||
lastModified = Instant.now();
|
||||
dirty = true;
|
||||
}
|
||||
listeners.forEach(l -> l.onUpdate());
|
||||
synchronized (listeners) {
|
||||
listeners.forEach(l -> l.onUpdate());
|
||||
}
|
||||
}
|
||||
|
||||
public void addListener(Listener l) {
|
||||
this.listeners.add(l);
|
||||
synchronized (listeners) {
|
||||
this.listeners.add(l);
|
||||
}
|
||||
}
|
||||
|
||||
public final void deleteFromDisk() throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user