1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 06:37:17 +00:00

[#102 state:fixed] Remember the size/position of all window between launches.

This commit is contained in:
Virgil Dupras
2010-08-15 12:27:15 +02:00
parent 58da335b17
commit 4c273a7910
11 changed files with 223 additions and 42 deletions

View File

@@ -33,7 +33,8 @@ class Preferences(PreferencesBase):
(80, False), # dupe count
]
def _load_specific(self, settings, get):
def _load_specific(self, settings):
get = self.get_value
self.scan_type = get('ScanType', self.scan_type)
self.word_weighting = get('WordWeighting', self.word_weighting)
self.match_similar = get('MatchSimilar', self.match_similar)
@@ -56,7 +57,8 @@ class Preferences(PreferencesBase):
self.scan_tag_genre = False
self.scan_tag_year = False
def _save_specific(self, settings, set_):
def _save_specific(self, settings):
set_ = self.set_value
set_('ScanType', self.scan_type)
set_('WordWeighting', self.word_weighting)
set_('MatchSimilar', self.match_similar)