Commit 4f59be4d authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[scripts][editor_cli] Set application icon

parent 26f1bcd6
Pipeline #40541 passed with stage
in 24 minutes and 23 seconds
......@@ -36,6 +36,7 @@ import pkg_resources
from click_plugins import with_plugins
from PyQt5.QtCore import QCoreApplication
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication
from beat.cmdline import environments
......@@ -136,6 +137,7 @@ def start(ctx):
if not check_prefix(config.prefix):
return
app.setWindowIcon(QIcon(":/resources/appicon"))
app.installEventFilter(MouseWheelFilter(app))
mainwindow = MainWindow()
mainwindow.set_context(ctx)
......@@ -161,6 +163,7 @@ def edit(ctx, asset_type, asset_name):
"""Edit one specific asset"""
app = QApplication(sys.argv)
app.setWindowIcon(QIcon(":/resources/appicon"))
asset_widget = AssetWidget()
asset_widget.set_context(ctx)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment