mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Unlock fixes
This commit is contained in:
parent
6387419d70
commit
525916d59d
2 changed files with 8 additions and 2 deletions
|
@ -14,7 +14,6 @@ import io.xpipe.app.update.XPipeDistributionType;
|
|||
import io.xpipe.app.util.FileBridge;
|
||||
import io.xpipe.app.util.LicenseProvider;
|
||||
import io.xpipe.app.util.LocalShell;
|
||||
import io.xpipe.app.util.UnlockAlert;
|
||||
import io.xpipe.core.util.JacksonMapper;
|
||||
|
||||
public class BaseMode extends OperationMode {
|
||||
|
@ -55,7 +54,6 @@ public class BaseMode extends OperationMode {
|
|||
// Initialize socket server before storage
|
||||
// as we should be prepared for git askpass commands
|
||||
AppSocketServer.init();
|
||||
UnlockAlert.showIfNeeded();
|
||||
DataStorage.init();
|
||||
AppFileWatcher.init();
|
||||
FileBridge.init();
|
||||
|
|
|
@ -3,6 +3,7 @@ package io.xpipe.app.storage;
|
|||
import io.xpipe.app.issue.ErrorEvent;
|
||||
import io.xpipe.app.issue.TrackEvent;
|
||||
import io.xpipe.app.prefs.AppPrefs;
|
||||
import io.xpipe.app.util.UnlockAlert;
|
||||
import io.xpipe.core.process.OsType;
|
||||
import io.xpipe.core.store.LocalStore;
|
||||
import lombok.Getter;
|
||||
|
@ -54,6 +55,13 @@ public class StandardStorage extends DataStorage {
|
|||
this.gitStorageHandler.init(dir);
|
||||
this.gitStorageHandler.beforeStorageLoad();
|
||||
|
||||
try {
|
||||
// This can fail if the necessary platform initialization fails
|
||||
UnlockAlert.showIfNeeded();
|
||||
} catch (Exception e) {
|
||||
ErrorEvent.fromThrowable(e).terminal(true).build().handle();
|
||||
}
|
||||
|
||||
try {
|
||||
initSystemInfo();
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in a new issue