mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Small fixes
This commit is contained in:
parent
eef991c031
commit
e2957a1c67
2 changed files with 4 additions and 4 deletions
|
@ -83,10 +83,10 @@ public abstract class OperationMode {
|
|||
}
|
||||
|
||||
private static void setup(String[] args) {
|
||||
// Register stage theming early to make it apply for any potential early popups
|
||||
ModifiedStage.init();
|
||||
|
||||
try {
|
||||
// Register stage theming early to make it apply for any potential early popups
|
||||
ModifiedStage.init();
|
||||
|
||||
// Only for handling SIGTERM
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
|
||||
TrackEvent.info("Received SIGTERM externally");
|
||||
|
|
|
@ -33,7 +33,7 @@ import java.util.stream.Stream;
|
|||
public class AppPrefs {
|
||||
|
||||
public static final Path DEFAULT_STORAGE_DIR =
|
||||
AppProperties.get().getDataDir().resolve("storage");
|
||||
AppProperties.get() != null ? AppProperties.get().getDataDir().resolve("storage") : null;
|
||||
private static final String DEVELOPER_MODE_PROP = "io.xpipe.app.developerMode";
|
||||
private static AppPrefs INSTANCE;
|
||||
private final List<Mapping<?>> mapping = new ArrayList<>();
|
||||
|
|
Loading…
Reference in a new issue