Skip to content

Commit

Permalink
__main__: Fix notification icon paths
Browse files Browse the repository at this point in the history
  • Loading branch information
irgolic committed Jun 17, 2019
1 parent d81a9d0 commit 2b216b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Orange/canvas/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from Orange.canvas.registry import WidgetRegistry, set_global_registry
from Orange.canvas.registry import cache
from Orange.canvas.utils.overlay import NotificationWidget, NotificationOverlay
from Orange.widgets import gui

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -188,7 +189,7 @@ def setup_notifications():
settings["startup/launch-count"] >= 5
if show_survey:
surveyDialogButtons = NotificationWidget.Ok | NotificationWidget.Close
surveyDialog = NotificationWidget(icon=QIcon("Orange/widgets/icons/information.png"),
surveyDialog = NotificationWidget(icon=QIcon(gui.resource_filename("icons/information.png")),
title="Survey",
text="We want to understand our users better.\n"
"Would you like to take a short survey?",
Expand All @@ -209,7 +210,8 @@ def handle_survey_response(button):
# data collection permission
if not settings["error-reporting/permission-requested"]:
permDialogButtons = NotificationWidget.Ok | NotificationWidget.Close
permDialog = NotificationWidget(icon=QIcon("distribute/icon-48.png"),
permDialog = NotificationWidget(icon=QIcon(gui.resource_filename(
"../../distribute/icon-48.png")),
title="Anonymous Usage Statistics",
text="Do you wish to opt-in to sharing "
"statistics about how you use Orange?\n"
Expand Down Expand Up @@ -278,7 +280,7 @@ def compare_versions(latest):
return

questionButtons = NotificationWidget.Ok | NotificationWidget.Close
question = NotificationWidget(icon=QIcon('Orange/widgets/icons/Dlg_down3.png'),
question = NotificationWidget(icon=QIcon(gui.resource_filename('icons/Dlg_down3.png')),
title='Orange Update Available',
text='Current version: <b>{}</b><br>'
'Latest version: <b>{}</b>'.format(current, latest),
Expand Down

0 comments on commit 2b216b4

Please sign in to comment.