Small fixes

This commit is contained in:
crschnick 2024-07-22 03:50:03 +00:00
parent eef991c031
commit e2957a1c67
2 changed files with 4 additions and 4 deletions

View file

@ -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");

View file

@ -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<>();