mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
Remove some obscure var and associated parts of code from UI.
This commit is contained in:
parent
86db5dbaa7
commit
e09d489077
1 changed files with 0 additions and 13 deletions
|
@ -69,7 +69,6 @@ class DelugeGTK:
|
||||||
#Start the Deluge Manager:
|
#Start the Deluge Manager:
|
||||||
self.manager = core.Manager(common.CLIENT_CODE, common.CLIENT_VERSION,
|
self.manager = core.Manager(common.CLIENT_CODE, common.CLIENT_VERSION,
|
||||||
'%s %s'%(common.PROGRAM_NAME, common.PROGRAM_VERSION), common.CONFIG_DIR)
|
'%s %s'%(common.PROGRAM_NAME, common.PROGRAM_VERSION), common.CONFIG_DIR)
|
||||||
self.something_screwed_up = False
|
|
||||||
self.plugins = plugins.PluginManager(self.manager, self)
|
self.plugins = plugins.PluginManager(self.manager, self)
|
||||||
self.plugins.add_plugin_dir(common.PLUGIN_DIR)
|
self.plugins.add_plugin_dir(common.PLUGIN_DIR)
|
||||||
if os.path.isdir(os.path.join(common.CONFIG_DIR , 'plugins')):
|
if os.path.isdir(os.path.join(common.CONFIG_DIR , 'plugins')):
|
||||||
|
@ -835,18 +834,6 @@ class DelugeGTK:
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if self.something_screwed_up:
|
|
||||||
dialogs.show_popup_warning(self.window,
|
|
||||||
_("For some reason, the previous state could not be loaded, so a blank state has been loaded for you."))
|
|
||||||
restore_torrents = dialogs.show_popup_question(self.window,
|
|
||||||
_("Would you like to attempt to reload the previous session's downloads?"))
|
|
||||||
if restore_torrents:
|
|
||||||
torrent_subdir = os.path.join(self.manager.base_dir, core.TORRENTS_SUBDIR)
|
|
||||||
for torrent in os.listdir(torrent_subdir):
|
|
||||||
if torrent.endswith('.torrent'):
|
|
||||||
self.interactive_add_torrent(torrent)
|
|
||||||
self.something_screwed_up = False
|
|
||||||
|
|
||||||
# Update Statusbar and Tray Tips
|
# Update Statusbar and Tray Tips
|
||||||
self.update_statusbar_and_tray()
|
self.update_statusbar_and_tray()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue