Skip to content

Commit

Permalink
QGIS.clear() fix - kamangir/bolt#746
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Jul 13, 2024
1 parent 1157697 commit 1fd7485
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion blue_geo/.abcli/QGIS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function QGIS() {
}

# internal function to abcli_seed.
function QGIS_seed() {
function abcli_seed_QGIS() {
# seed is NOT local
seed=$(python3 -m blue_geo.QGIS generate_seed)
}
Expand Down
5 changes: 2 additions & 3 deletions blue_geo/QGIS/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@

success = False
if args.task == "generate_seed":
success = seed = generate_seed()
if success:
print(seed)
success = True
print(generate_seed())
else:
success = None

Expand Down
4 changes: 2 additions & 2 deletions blue_geo/QGIS/console/QGIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ def intro(self):
)

def clear(self):
# https://gis.stackexchange.com/a/216444/210095
# https://gis.stackexchange.com/a/480025/250728
from qgis.PyQt.QtWidgets import QDockWidget

consoleWidget = iface.mainWindow().findChild(QDockWidget, "PythonConsole")
consoleWidget.console.shellOut.clearConsole()
consoleWidget.widget().console.clearButton.trigger()

self.intro()

Expand Down
2 changes: 1 addition & 1 deletion blue_geo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

DESCRIPTION = f"{ICON} AI for precise geospatial data analysis and visualization."

VERSION = "4.33.1"
VERSION = "4.34.1"

REPO_NAME = "blue-geo"

Expand Down

0 comments on commit 1fd7485

Please sign in to comment.