From 83042205ab2235c0c81da4d7f4eb7dfc089329a3 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 5 Sep 2007 01:29:59 +0000 Subject: [PATCH] pref for show 18px flag on by default --- plugins/TorrentPeers/__init__.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/TorrentPeers/__init__.py b/plugins/TorrentPeers/__init__.py index 056725c3d..694381478 100644 --- a/plugins/TorrentPeers/__init__.py +++ b/plugins/TorrentPeers/__init__.py @@ -45,7 +45,9 @@ class TorrentPeers: self.parent = interface self.manager = core self.config_file = deluge.common.CONFIG_DIR + "/peers.conf" - self.config = deluge.pref.Preferences(self.config_file, False) + self.config = deluge.pref.Preferences(self.config_file, False, + defaults={'enable_flags' : True, + 'size_18' : True}) try: self.config.load() except IOError: @@ -100,10 +102,7 @@ class TorrentPeers: self.glade.get_widget("chk_flags").set_active(False) self.glade.get_widget("radio_18").set_sensitive(False) self.glade.get_widget("radio_25").set_sensitive(False) - except: - self.glade.get_widget("chk_finished").set_active(False) - self.glade.get_widget("radio_18").set_sensitive(False) - self.glade.get_widget("radio_25").set_sensitive(False) + self.dialog_initialize = False self.dialog.set_transient_for(window) self.dialog.show()