Skip to content

Commit d79f183

Browse files
FriendsOfGalaxyapawlowskij
authored andcommitted
Fix RegistryMonitor.is_updated method
1 parent 78f1d5a commit d79f183

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/galaxy/registry_monitor.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import sys
2+
3+
24
if sys.platform == "win32":
35
import logging
46
import ctypes
@@ -76,11 +78,10 @@ def is_updated(self):
7678
if self._key is None:
7779
self._open_key()
7880

79-
if self._key is None:
80-
return False
81+
if self._key is not None:
82+
self._set_key_update_notification()
8183

82-
self._set_key_update_notification()
83-
return True
84+
return False
8485

8586
def _set_key_update_notification(self):
8687
filter_ = REG_NOTIFY_CHANGE_NAME | REG_NOTIFY_CHANGE_LAST_SET

0 commit comments

Comments
 (0)