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

Localized Fairware dialogs to french and made a few fixes here and there.

This commit is contained in:
Virgil Dupras
2011-01-24 11:30:45 +01:00
parent 8a0d31f612
commit 6c60e76b55
8 changed files with 50 additions and 14 deletions

View File

@@ -49,6 +49,8 @@ class DupeGuru(DupeGuruBase, QObject):
os.makedirs(appdata)
# For basicConfig() to work, we have to be sure that no logging has taken place before this call.
logging.basicConfig(filename=op.join(appdata, 'debug.log'), level=logging.WARNING)
self.prefs = self._create_preferences()
self.prefs.load()
DupeGuruBase.__init__(self, data_module, appdata)
QObject.__init__(self)
self._setup()
@@ -56,8 +58,6 @@ class DupeGuru(DupeGuruBase, QObject):
#--- Private
def _setup(self):
self._setupActions()
self.prefs = self._create_preferences()
self.prefs.load()
self._update_options()
self.recentResults = Recent(self, 'recentResults')
self.recentResults.mustOpenItem.connect(self.load_from)
@@ -147,6 +147,12 @@ class DupeGuru(DupeGuruBase, QObject):
msg = trmsg("TaskHangingMsg")
QMessageBox.information(self.resultWindow, 'Action in progress', msg)
def _get_default(self, key):
return self.prefs.get_value(key)
def _set_default(self, key, value):
self.prefs.set_value(key, value)
def add_selected_to_ignore_list(self):
dupes = self.without_ref(self.selected_dupes)
if not dupes: