From 9abfc5b250f35c0efb5fadba2b76badbb9269a6c Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Thu, 31 May 2012 14:20:57 +0200 Subject: [PATCH] Added a first run popup(actually just ordinary help with changed title) --- deluge/ui/console/modes/alltorrents.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index 2826703be..28a404e4d 100644 --- a/deluge/ui/console/modes/alltorrents.py +++ b/deluge/ui/console/modes/alltorrents.py @@ -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)