mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 23:36:36 +00:00
libgui/GuiCanvasInterface.py:_import(): call reset{Cursor,Undo}() on journal after importing.
This commit is contained in:
parent
6311c32bde
commit
548f63b4e7
@ -39,6 +39,8 @@ class GuiCanvasInterface():
|
|||||||
self.parentCanvas.update(newSize, False, newMap)
|
self.parentCanvas.update(newSize, False, newMap)
|
||||||
self.canvasPathName = newPathName
|
self.canvasPathName = newPathName
|
||||||
self.update(dirty=self.parentCanvas.dirty, pathName=self.canvasPathName, undoLevel=-1)
|
self.update(dirty=self.parentCanvas.dirty, pathName=self.canvasPathName, undoLevel=-1)
|
||||||
|
self.parentCanvas.canvas.journal.resetCursor()
|
||||||
|
self.parentCanvas.canvas.journal.resetUndo()
|
||||||
else:
|
else:
|
||||||
with wx.MessageDialog(self.parentCanvas, "Error: {}".format(error), "", wx.OK | wx.OK_DEFAULT) as dialog:
|
with wx.MessageDialog(self.parentCanvas, "Error: {}".format(error), "", wx.OK | wx.OK_DEFAULT) as dialog:
|
||||||
dialogChoice = dialog.ShowModal()
|
dialogChoice = dialog.ShowModal()
|
||||||
|
Loading…
Reference in New Issue
Block a user