Add move to trash switch on split dialog and processing (#1179)

This commit is contained in:
Veronica Berglyd Olsen
2022-10-30 17:03:52 +01:00
parent 15fd4c51df
commit 1784d9ce28
2 changed files with 11 additions and 1 deletions
+3
View File
@@ -1612,6 +1612,9 @@ class GuiProjectTree(QTreeWidget):
self.tr("Could not write document content."), docSplit.getError()
], nwAlert.ERROR)
if splitData.get("moveToTrash", False):
self.moveItemToTrash(tHandle, askFirst=False, flush=True)
self.saveTreeOrder()
else: