mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add more logging
Use better way to serialize user permissions
This commit is contained in:
@@ -127,7 +127,8 @@ class _MainApp extends State<MainApp> {
|
||||
}
|
||||
|
||||
void changeThemeMode(ThemeMode mode) {
|
||||
prefs.setInt("themeMode", mode.index);
|
||||
prefs.setInt("themeMode", mode.index).then(
|
||||
(value) => {if (!value) _log.warning("Failed to save themeMode.")});
|
||||
setState(() {
|
||||
_themeMode = mode;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user