must load the window_icon before validation, because alert() requires it

This commit is contained in:
Micah Lee 2015-06-16 10:54:18 -07:00
parent c25e8f99dc
commit 3073ec8a76

View File

@ -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)