mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-08 01:15:00 -04:00
must load the window_icon before validation, because alert() requires it
This commit is contained in:
parent
c25e8f99dc
commit
3073ec8a76
1 changed files with 4 additions and 4 deletions
|
@ -242,6 +242,10 @@ def main():
|
|||
stay_open = bool(args.stay_open)
|
||||
debug = bool(args.debug)
|
||||
|
||||
# create the onionshare icon
|
||||
global window_icon
|
||||
window_icon = QtGui.QIcon(common.get_image_path('logo.png'))
|
||||
|
||||
# validation
|
||||
if filenames:
|
||||
valid = True
|
||||
|
@ -252,10 +256,6 @@ def main():
|
|||
if not valid:
|
||||
sys.exit()
|
||||
|
||||
# create the onionshare icon
|
||||
global window_icon
|
||||
window_icon = QtGui.QIcon(common.get_image_path('logo.png'))
|
||||
|
||||
# start the onionshare app
|
||||
web.set_stay_open(stay_open)
|
||||
app = onionshare.OnionShare(debug, local_only, stay_open)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue