Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix status bar update
Browse files Browse the repository at this point in the history
wenzeslaus committed Jan 27, 2025
1 parent d6e041a commit 7a965a5
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/core/gconsole.py
Original file line number Diff line number Diff line change
@@ -865,7 +865,7 @@ def OnCmdDone(self, event):
location=gisenv["LOCATION_NAME"],
mapset=mask_mapset,
action=action,
map=name,
map=mask_name,
element="raster",
)

2 changes: 2 additions & 0 deletions gui/wxpython/lmgr/statusbar.py
Original file line number Diff line number Diff line change
@@ -96,6 +96,8 @@ def dbChanged(self, map=None, newname=None):
mask_layer = gs.parse_command("r.mask.status", format="json")["name"].split(
"@", maxsplit=1
)[0]
# This assumes mask is always in the current mapset (or the event is triggered
# only for the current mapset).
if mask_layer in {map, newname}:
self.Refresh()
self.giface.updateMap.emit()

0 comments on commit 7a965a5

Please sign in to comment.