Skip to content

Commit

Permalink
Merge pull request #60480 from alexbruy/processing-script-editor-typos
Browse files Browse the repository at this point in the history
add missed import and fix getThemeIcon() call (follow-up #60261)
  • Loading branch information
alexbruy authored Feb 6, 2025
2 parents 278eb79 + b6d1d7e commit 6b4ffb3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/plugins/processing/script/ScriptEditorDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

from qgis.PyQt import uic, sip
from qgis.PyQt.QtCore import Qt
from qgis.PyQt.QtGui import QPalette
from qgis.PyQt.QtWidgets import QMessageBox, QFileDialog, QVBoxLayout

from qgis.gui import QgsGui, QgsErrorDialog, QgsCodeEditorWidget
Expand Down Expand Up @@ -116,8 +117,10 @@ def clean_up_store():
QgsApplication.getThemeIcon("/mActionDecreaseFont.svg")
)
self.actionToggleComment.setIcon(
QgsApplication.getThemeIcon("console/iconCommentEditorConsole.svg"),
self.palette().color(QPalette.ColorRole.WindowText),
QgsApplication.getThemeIcon(
"console/iconCommentEditorConsole.svg",
self.palette().color(QPalette.ColorRole.WindowText),
)
)

# Connect signals and slots
Expand Down

0 comments on commit 6b4ffb3

Please sign in to comment.