calendar fix and update.
This commit is contained in:
@@ -50,7 +50,6 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
bool _notifyDezuranje = true;
|
||||
bool _notifySestanek = true;
|
||||
bool _notifyTekma = true;
|
||||
|
||||
String _selectedLanguage = 'English';
|
||||
final List<Map<String, String>> _languages = [
|
||||
{'code': 'en', 'name': 'English', 'flag': '🇬🇧'},
|
||||
@@ -229,11 +228,13 @@ String _getTargetDisplayName(String targetPath) {
|
||||
await prefs.setInt('notificationHours_single', hours);
|
||||
await prefs.setStringList('notificationHours', [hours.toString()]);
|
||||
setState(() => _notificationHours = hours);
|
||||
NotificationService().rescheduleFromCalendar();
|
||||
}
|
||||
|
||||
Future<void> _saveNotifyType(String key, bool value) async {
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
await prefs.setBool(key, value);
|
||||
NotificationService().rescheduleFromCalendar();
|
||||
}
|
||||
|
||||
Future<void> _loadCameraIPs() async {
|
||||
|
||||
Reference in New Issue
Block a user