mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-02-19 15:46:38 -05:00
Fix RegistryMonitor.is_updated method
This commit is contained in:
committed by
apaulouski
parent
78f1d5a4cc
commit
d79f183826
@@ -1,4 +1,6 @@
|
||||
import sys
|
||||
|
||||
|
||||
if sys.platform == "win32":
|
||||
import logging
|
||||
import ctypes
|
||||
@@ -76,11 +78,10 @@ class RegistryMonitor:
|
||||
if self._key is None:
|
||||
self._open_key()
|
||||
|
||||
if self._key is None:
|
||||
return False
|
||||
if self._key is not None:
|
||||
self._set_key_update_notification()
|
||||
|
||||
self._set_key_update_notification()
|
||||
return True
|
||||
return False
|
||||
|
||||
def _set_key_update_notification(self):
|
||||
filter_ = REG_NOTIFY_CHANGE_NAME | REG_NOTIFY_CHANGE_LAST_SET
|
||||
|
||||
Reference in New Issue
Block a user