mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-14 17:49:19 -04:00
Typos in EventHandlerThread
This commit is contained in:
parent
a5a761ddb8
commit
ef73f354b7
1 changed files with 3 additions and 4 deletions
|
@ -182,17 +182,16 @@ class EventHandlerThread(QtCore.QThread):
|
||||||
new_share_tab = QtCore.pyqtSignal(list)
|
new_share_tab = QtCore.pyqtSignal(list)
|
||||||
|
|
||||||
def __init__(self, common):
|
def __init__(self, common):
|
||||||
super(EventHandler, self).__init__()
|
super(EventHandlerThread, self).__init__()
|
||||||
self.common = common
|
self.common = common
|
||||||
self.common.log("EventHandlerThread", "__init__")
|
self.common.log("EventHandlerThread", "__init__")
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.common.log("EventHandlerThread", "run")
|
self.common.log("EventHandlerThread", "run")
|
||||||
|
|
||||||
mtime = os.stat(self.common.gui.events_filename).st_mtime
|
mtime = 0
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
if os.path.exist(self.common.gui.events_filename):
|
if os.path.exists(self.common.gui.events_filename):
|
||||||
# Events file exists
|
# Events file exists
|
||||||
if os.stat(self.common.gui.events_filename).st_mtime != mtime:
|
if os.stat(self.common.gui.events_filename).st_mtime != mtime:
|
||||||
# Events file has been modified, load events
|
# Events file has been modified, load events
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue