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

Enum-ified Scan Type constants, looks nicer.

This commit is contained in:
Virgil Dupras
2010-08-14 19:52:23 +02:00
parent 5b2d506462
commit 58da335b17
8 changed files with 62 additions and 64 deletions

View File

@@ -6,7 +6,7 @@
from hscommon.cocoa import signature
from core import scanner
from core.scanner import ScanType
from core.app_cocoa_inter import PyDupeGuruBase, PyDetailsPanel
from core_se.app_cocoa import DupeGuru
@@ -30,8 +30,8 @@ class PyDupeGuru(PyDupeGuruBase):
def setScanType_(self,scan_type):
try:
self.py.scanner.scan_type = [
scanner.SCAN_TYPE_FILENAME,
scanner.SCAN_TYPE_CONTENT
ScanType.Filename,
ScanType.Contents,
][scan_type]
except IndexError:
pass