Hide a bunch of expert-properties by default
This commit is contained in:
@@ -57,6 +57,7 @@ class AppSettings extends ChangeNotifier {
|
||||
AppSettingsDateFormat dateFormat = AppSettingsDateFormat.ISO;
|
||||
int messagePreviewLength = 3;
|
||||
bool showInfoAlerts = true;
|
||||
bool showExtendedAttributes = false;
|
||||
|
||||
AppNotificationSettings notification0 = AppNotificationSettings();
|
||||
AppNotificationSettings notification1 = AppNotificationSettings();
|
||||
@@ -82,6 +83,7 @@ class AppSettings extends ChangeNotifier {
|
||||
dateFormat = AppSettingsDateFormat.ISO;
|
||||
messagePreviewLength = 3;
|
||||
showInfoAlerts = true;
|
||||
showExtendedAttributes = true;
|
||||
|
||||
notification0 = AppNotificationSettings();
|
||||
notification1 = AppNotificationSettings();
|
||||
@@ -100,6 +102,7 @@ class AppSettings extends ChangeNotifier {
|
||||
dateFormat = AppSettingsDateFormat.parse(Globals().sharedPrefs.getString('settings.dateFormat')) ?? dateFormat;
|
||||
messagePreviewLength = Globals().sharedPrefs.getInt('settings.messagePreviewLength') ?? messagePreviewLength;
|
||||
showInfoAlerts = Globals().sharedPrefs.getBool('settings.showInfoAlerts') ?? showInfoAlerts;
|
||||
showInfoAlerts = Globals().sharedPrefs.getBool('settings.showExtendedAttributes') ?? showExtendedAttributes;
|
||||
|
||||
notification0 = AppNotificationSettings.load(Globals().sharedPrefs, 'settings.notification0');
|
||||
notification1 = AppNotificationSettings.load(Globals().sharedPrefs, 'settings.notification1');
|
||||
@@ -116,6 +119,7 @@ class AppSettings extends ChangeNotifier {
|
||||
await Globals().sharedPrefs.setString('settings.dateFormat', dateFormat.key);
|
||||
await Globals().sharedPrefs.setInt('settings.messagePreviewLength', messagePreviewLength);
|
||||
await Globals().sharedPrefs.setBool('settings.showInfoAlerts', showInfoAlerts);
|
||||
await Globals().sharedPrefs.setBool('settings.showExtendedAttributes', showExtendedAttributes);
|
||||
|
||||
await notification0.save(Globals().sharedPrefs, 'settings.notification0');
|
||||
await notification1.save(Globals().sharedPrefs, 'settings.notification1');
|
||||
|
||||
Reference in New Issue
Block a user