mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 13:56:47 +00:00
Added a first run popup(actually just ordinary help with changed title)
This commit is contained in:
parent
a41c950b11
commit
9abfc5b250
@ -188,7 +188,8 @@ DEFAULT_PREFS = {
|
|||||||
"sort_secondary": "name",
|
"sort_secondary": "name",
|
||||||
"separate_complete": True,
|
"separate_complete": True,
|
||||||
"ring_bell": False,
|
"ring_bell": False,
|
||||||
"save_legacy_history": True
|
"save_legacy_history": True,
|
||||||
|
"first_run": True
|
||||||
}
|
}
|
||||||
|
|
||||||
column_pref_names = ["queue","name","size","state",
|
column_pref_names = ["queue","name","size","state",
|
||||||
@ -317,6 +318,11 @@ class AllTorrents(BaseMode, component.Component):
|
|||||||
|
|
||||||
self.legacy_mode = Legacy(self.stdscr, self.encoding)
|
self.legacy_mode = Legacy(self.stdscr, self.encoding)
|
||||||
|
|
||||||
|
if self.config["first_run"]:
|
||||||
|
self.popup = Popup(self,"Welcome to Deluge" ,init_lines=self.__help_lines, height_req=0.75, width_req=65)
|
||||||
|
self.config["first_run"] = False
|
||||||
|
self.config.save()
|
||||||
|
|
||||||
# component start/update
|
# component start/update
|
||||||
def start(self):
|
def start(self):
|
||||||
component.get("SessionProxy").get_torrents_status(self.__status_dict, self.__status_fields).addCallback(self.set_state,False)
|
component.get("SessionProxy").get_torrents_status(self.__status_dict, self.__status_fields).addCallback(self.set_state,False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user