Fix various bugs and shit
This commit is contained in:
@@ -614,17 +614,13 @@ class MainPageState extends State<MainPage> with WindowListener {
|
||||
Duration newInterval = Duration(minutes: newIntervalMinutes);
|
||||
if (newInterval != _currentPopupInterval) {
|
||||
_currentPopupInterval = newInterval;
|
||||
DB.setSetting('popupIntervalMinutes', newIntervalMinutes.toString());
|
||||
await setPopupInterval(newInterval);
|
||||
_startPopupTimer();
|
||||
} else {
|
||||
DB.setSetting('popupIntervalMinutes', newIntervalMinutes.toString());
|
||||
}
|
||||
|
||||
if (soundStr != _currentNotificationSound) {
|
||||
_currentNotificationSound = soundStr;
|
||||
DB.setSetting('notificationSound', soundStr);
|
||||
} else {
|
||||
DB.setSetting('notificationSound', soundStr);
|
||||
await setNotificationSound(soundStr);
|
||||
}
|
||||
|
||||
// Also save volume
|
||||
|
Reference in New Issue
Block a user