1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Added a Deletion Options dialog that pops up when Send to Trash is triggered.

It offers hardlink and direct deletion options. This new feature supersedes the old "Send to Trash and Hardlink" menu item, which was removed.
This commit is contained in:
Virgil Dupras
2012-05-30 12:10:56 -04:00
parent 1171705921
commit 721591d3e3
44 changed files with 2249 additions and 1207 deletions

View File

@@ -0,0 +1,23 @@
# Created On: 2012-05-30
# Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
from hscommon.gui.base import GUIObject
from hscommon.trans import tr
class DeletionOptions(GUIObject):
#--- View interface
# update_msg(msg: str)
# show()
#
def show(self, mark_count):
self.hardlink = False
self.direct = False
msg = tr("You are sending {} file(s) to the Trash.").format(mark_count)
self.view.update_msg(msg)
return self.view.show()