Fix various bugs and shit

This commit is contained in:
2025-05-24 01:07:08 +02:00
parent 3c1f31d29b
commit 6eb55c5d50
2 changed files with 6 additions and 10 deletions

View File

@@ -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