Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
4f59be4d
Commit
4f59be4d
authored
Jun 18, 2020
by
Samuel GAIST
Browse files
[scripts][editor_cli] Set application icon
parent
26f1bcd6
Pipeline
#40541
passed with stage
in 24 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/scripts/editor_cli.py
View file @
4f59be4d
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment