mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-25 18:59:38 +00:00
-
This commit is contained in:
parent
76fde311c9
commit
eff1798503
@ -56,15 +56,16 @@ class DelugeGTK:
|
|||||||
p = "DE"
|
p = "DE"
|
||||||
v = "0500"
|
v = "0500"
|
||||||
s = "%s %s"%(dcommon.PROGRAM_NAME, dcommon.PROGRAM_VERSION)
|
s = "%s %s"%(dcommon.PROGRAM_NAME, dcommon.PROGRAM_VERSION)
|
||||||
try:
|
#try:
|
||||||
self.manager = deluge.Manager(p, v, s, dcommon.CONFIG_DIR)
|
# self.manager = deluge.Manager(p, v, s, dcommon.CONFIG_DIR)
|
||||||
except:
|
#except:
|
||||||
# If something goes wrong while restoring the session, then load
|
# # If something goes wrong while restoring the session, then load
|
||||||
# a blank state rather than crash and exit
|
# # a blank state rather than crash and exit
|
||||||
self.manager = deluge.Manager(p, v, s, dcommon.CONFIG_DIR, blank_slate=True)
|
# self.manager = deluge.Manager(p, v, s, dcommon.CONFIG_DIR, blank_slate=True)
|
||||||
self.something_screwed_up = True
|
# self.something_screwed_up = True
|
||||||
|
self.manager = deluge.Manager(p, v, s, dcommon.CONFIG_DIR)
|
||||||
else: self.something_screwed_up = False
|
self.something_screwed_up = False
|
||||||
|
#else: self.something_screwed_up = False
|
||||||
self.plugins = delugeplugins.PluginManager(self.manager, self)
|
self.plugins = delugeplugins.PluginManager(self.manager, self)
|
||||||
self.plugins.add_plugin_dir(dcommon.PLUGIN_DIR)
|
self.plugins.add_plugin_dir(dcommon.PLUGIN_DIR)
|
||||||
if os.path.isdir(dcommon.CONFIG_DIR + '/plugins'):
|
if os.path.isdir(dcommon.CONFIG_DIR + '/plugins'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user