Update store.py

better-merge-of-new-values
dgtlmoon 2025-07-14 22:36:31 +02:00 zatwierdzone przez GitHub
rodzic 288272a26c
commit cae79a919c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -78,10 +78,6 @@ class ChangeDetectionStore:
if 'settings' in from_disk:
# update the modal with whats on disk
on_disk={'yes': '1'}
existing = {'yes': '0', 'more': 'ok'}
p=always_merger.merge(on_disk, existing)
# yes should be 0
self.__data['settings'] = always_merger.merge(from_disk['settings'], self.__data['settings'])
# Convert each existing watch back to the Watch.model object