mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-05 22:51:35 +00:00
Various fixes
This commit is contained in:
3 files changed
+19
-1
No files matched your search
@@ -331,6 +331,11 @@ public abstract class AppOperationMode {
|
||||
AppOperationMode.halt(1);
|
||||
}
|
||||
|
||||
if (isInShutdown()) {
|
||||
TrackEvent.info("Received shutdown request while in shutdown. Halting ...");
|
||||
AppOperationMode.halt(1);
|
||||
}
|
||||
|
||||
TrackEvent.info("Starting shutdown ...");
|
||||
|
||||
synchronized (AppOperationMode.class) {
|
||||
|
||||
@@ -13,6 +13,7 @@ import io.xpipe.app.storage.DataStoreCategory;
|
||||
import io.xpipe.app.storage.DataStoreCategoryConfig;
|
||||
import io.xpipe.app.storage.DataStoreColor;
|
||||
|
||||
import io.xpipe.app.util.ThreadHelper;
|
||||
import javafx.application.Platform;
|
||||
import javafx.beans.binding.Bindings;
|
||||
import javafx.beans.property.*;
|
||||
@@ -122,8 +123,14 @@ public class StoreCategoryWrapper {
|
||||
}
|
||||
|
||||
public void delete() {
|
||||
ThreadHelper.runAsync(() -> {
|
||||
deleteImpl();
|
||||
});
|
||||
}
|
||||
|
||||
private void deleteImpl() {
|
||||
for (var c : children.getList()) {
|
||||
c.delete();
|
||||
c.deleteImpl();
|
||||
}
|
||||
DataStorage.get().deleteStoreCategory(category, false, false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user