Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14 from pypeclub/feature/launcher_with_icon
Browse files Browse the repository at this point in the history
feature/launcher_with_icon
  • Loading branch information
mkolar authored Jun 7, 2020
2 parents 651654a + 2c6e2a0 commit 7cc7a41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion launcher/launcher_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ def __init__(self, source, root=None):
engine.rootContext().setContextProperty("terminal", terminal.model)
engine.rootContext().setContextProperty("res_path", res_path)

self._icon = QtGui.QIcon(ICON_PATH)
self._tray = None
self.window = None
self.engine = engine
self.controller = controller
self.window = object
# self.window = object
self.controller.init()
engine.load(QtCore.QUrl.fromLocalFile(source))

Expand All @@ -60,6 +61,7 @@ def on_object_created(self, object, url):
print("Could not load QML file..")
sys.exit(1)
else:
object.setIcon(self._icon)
self.window = object
self.controller.init()

Expand Down

0 comments on commit 7cc7a41

Please sign in to comment.