mirror of
https://github.com/torproject/torbrowser-launcher.git
synced 2024-11-23 09:29:42 +00:00
only hide window if there is a window to hide (#151)
This commit is contained in:
parent
99fac15206
commit
d89fe1ed1e
@ -627,9 +627,10 @@ class Launcher:
|
||||
t.start()
|
||||
|
||||
# hide the TBL window (#151)
|
||||
self.window.hide()
|
||||
while gtk.events_pending():
|
||||
gtk.main_iteration_do(True)
|
||||
if hasattr(self, 'window'):
|
||||
self.window.hide()
|
||||
while gtk.events_pending():
|
||||
gtk.main_iteration_do(True)
|
||||
|
||||
# run Tor Browser
|
||||
subprocess.call([self.common.paths['tbb']['start']])
|
||||
|
Loading…
Reference in New Issue
Block a user