Added a first run popup(actually just ordinary help with changed title)

This commit is contained in:
Asmageddon 2012-05-31 14:20:57 +02:00
parent a41c950b11
commit 9abfc5b250
1 changed files with 7 additions and 1 deletions

View File

@ -188,7 +188,8 @@ DEFAULT_PREFS = {
"sort_secondary": "name",
"separate_complete": True,
"ring_bell": False,
"save_legacy_history": True
"save_legacy_history": True,
"first_run": True
}
column_pref_names = ["queue","name","size","state",
@ -317,6 +318,11 @@ class AllTorrents(BaseMode, component.Component):
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
def start(self):
component.get("SessionProxy").get_torrents_status(self.__status_dict, self.__status_fields).addCallback(self.set_state,False)