mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-04 17:05:31 -05:00
must load the window_icon before validation, because alert() requires it
This commit is contained in:
parent
c25e8f99dc
commit
3073ec8a76
@ -242,6 +242,10 @@ def main():
|
|||||||
stay_open = bool(args.stay_open)
|
stay_open = bool(args.stay_open)
|
||||||
debug = bool(args.debug)
|
debug = bool(args.debug)
|
||||||
|
|
||||||
|
# create the onionshare icon
|
||||||
|
global window_icon
|
||||||
|
window_icon = QtGui.QIcon(common.get_image_path('logo.png'))
|
||||||
|
|
||||||
# validation
|
# validation
|
||||||
if filenames:
|
if filenames:
|
||||||
valid = True
|
valid = True
|
||||||
@ -252,10 +256,6 @@ def main():
|
|||||||
if not valid:
|
if not valid:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
# create the onionshare icon
|
|
||||||
global window_icon
|
|
||||||
window_icon = QtGui.QIcon(common.get_image_path('logo.png'))
|
|
||||||
|
|
||||||
# start the onionshare app
|
# start the onionshare app
|
||||||
web.set_stay_open(stay_open)
|
web.set_stay_open(stay_open)
|
||||||
app = onionshare.OnionShare(debug, local_only, stay_open)
|
app = onionshare.OnionShare(debug, local_only, stay_open)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user