mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 22:51:39 +00:00
Added an Ignore List dialog.
This commit is contained in:
@@ -51,14 +51,14 @@ class PyDupeGuruBase(PyFairware):
|
||||
def resultTable(self) -> pyref:
|
||||
return self.model.result_table
|
||||
|
||||
def ignoreListDialog(self) -> pyref:
|
||||
return self.model.ignore_list_dialog
|
||||
|
||||
#---Directories
|
||||
def addDirectory_(self, directory: str) -> int:
|
||||
return self.model.add_directory(directory)
|
||||
|
||||
#---Results
|
||||
def clearIgnoreList(self):
|
||||
self.model.clear_ignore_list()
|
||||
|
||||
def doScan(self):
|
||||
self.model.start_scanning()
|
||||
|
||||
@@ -129,6 +129,9 @@ class PyDupeGuruBase(PyFairware):
|
||||
def invokeCustomCommand(self):
|
||||
self.model.invoke_custom_command()
|
||||
|
||||
def showIgnoreList(self):
|
||||
self.model.ignore_list_dialog.show()
|
||||
|
||||
#---Information
|
||||
def resultsAreModified(self) -> bool:
|
||||
return self.model.results.is_modified
|
||||
|
||||
20
cocoa/inter/ignore_list_dialog.py
Normal file
20
cocoa/inter/ignore_list_dialog.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from objp.util import pyref
|
||||
from cocoa.inter import PyGUIObject, GUIObjectView
|
||||
|
||||
class IgnoreListDialogView(GUIObjectView):
|
||||
def show(self): pass
|
||||
|
||||
class PyIgnoreListDialog(PyGUIObject):
|
||||
def ignoreListTable(self) -> pyref:
|
||||
return self.model.ignore_list_table
|
||||
|
||||
def removeSelected(self):
|
||||
self.model.remove_selected()
|
||||
|
||||
def clear(self):
|
||||
self.model.clear()
|
||||
|
||||
#--- model --> view
|
||||
def show(self):
|
||||
self.callback.show()
|
||||
|
||||
Reference in New Issue
Block a user