Fix platform preferences exception not being caught

This commit is contained in:
crschnick 2024-10-09 10:26:27 +00:00
parent a77f1b5fb6
commit c2427da60d

View file

@ -114,7 +114,7 @@ public class AppTheme {
}
});
});
} catch (UnsupportedOperationException ex) {
} catch (IllegalStateException ex) {
// The platform preferences are sometimes not initialized yet
ErrorEvent.fromThrowable(ex).expected().omit().handle();
} catch (Throwable t) {
@ -140,7 +140,7 @@ public class AppTheme {
} else {
AppPrefs.get().theme.setValue(Theme.getDefaultLightTheme());
}
} catch (UnsupportedOperationException ex) {
} catch (IllegalStateException ex) {
// The platform preferences are sometimes not initialized yet
ErrorEvent.fromThrowable(ex).expected().omit().handle();
} catch (Exception ex) {