mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Fix platform preferences exception not being caught
This commit is contained in:
parent
a77f1b5fb6
commit
c2427da60d
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue