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

Got rid of some code duplication in Cocoa interface.

This commit is contained in:
Virgil Dupras
2011-09-21 10:35:34 -04:00
parent 70689ce057
commit e21627bbde
7 changed files with 11 additions and 15 deletions

View File

@@ -11,7 +11,6 @@ from hscommon.cocoa import signature
from core.app_cocoa import PyDupeGuruBase, PyDetailsPanel
from core_me.app_cocoa import DupeGuruME
from core_me import __appname__
from core.scanner import ScanType
class PyDupeGuru(PyDupeGuruBase):
@@ -60,7 +59,3 @@ class PyDupeGuru(PyDupeGuruBase):
else:
self.py.scanner.scanned_tags.discard(scan_tag)
#---Registration
def appName(self):
return __appname__

View File

@@ -8,7 +8,7 @@ from hscommon.trans import install_cocoa_trans
install_cocoa_trans()
from core.app_cocoa import PyDupeGuruBase, PyDetailsPanel
from core_pe import app_cocoa as app_pe_cocoa, __appname__
from core_pe import app_cocoa as app_pe_cocoa
from core.scanner import ScanType
class PyDupeGuru(PyDupeGuruBase):
@@ -43,7 +43,3 @@ class PyDupeGuru(PyDupeGuruBase):
def setMinMatchPercentage_(self,percentage):
self.py.scanner.threshold = int(percentage)
#---Registration
def appName(self):
return __appname__

View File

@@ -12,7 +12,6 @@ from hscommon.cocoa import signature
from core.scanner import ScanType
from core.app_cocoa import PyDupeGuruBase, PyDetailsPanel
from core_se.app_cocoa import DupeGuru
from core_se import __appname__
class PyDupeGuru(PyDupeGuruBase):
def init(self):
@@ -44,7 +43,3 @@ class PyDupeGuru(PyDupeGuruBase):
def setSizeThreshold_(self, size_threshold):
self.py.scanner.size_threshold = size_threshold
#---Registration
def appName(self):
return __appname__