Index: config.py ================================================================== --- config.py +++ config.py @@ -141,11 +141,11 @@ self.retain_deleted = 0 self.auto_save_appstate = 1 self.auto_save_stations = 0 self.reuse_m3u = 1 self.playlist_asis = 0 - self.window_title = 1 + self.window_title = 0 self.google_homepage = 0 self.windows = platform.system()=="Windows" self.pyquery = 1 self.debug = 0 Index: st2.py ================================================================== --- st2.py +++ st2.py @@ -2,11 +2,11 @@ # encoding: UTF-8 # api: python # type: application # title: streamtuner2 # description: Directory browser for internet radio, audio and video streams -# version: 2.1.9-beta1 +# version: 2.1.9 # state: beta # author: Mario Salzer # license: Public Domain # url: http://freshcode.club/projects/streamtuner2 # config: @@ -190,11 +190,12 @@ "streamedit_new": self.streamedit.new, "streamedit_cancel": self.streamedit.cancel, }) # actually display main window - self.update_title() + if conf.window_title: + self.update_title() self.win_streamtuner2.show_all() gui_startup(100.0) #-- Shortcut for glade.get_widget() @@ -243,11 +244,12 @@ # Notebook tab has been clicked (receives numeric page_num), but *NOT* yet changed (visually). def channel_switch(self, notebook, page, page_num=0, *args): self.current_channel = notebook.get_menu_label_text(notebook.get_nth_page(page_num)) log.UI("main.channel_switch() :=", self.current_channel) # update window title, call plugin (e.g. channel link in toolbar) - uikit.do(self.update_title) + if conf.window_title: + uikit.do(self.update_title) # if first selected, load current category # (run in thread, to make it look speedy on first startup) self.thread(self.channel().first_show) # Invoked from the menu instead, uses module name instead of numeric tab id @@ -255,12 +257,11 @@ self.notebook_channels.set_current_page(self.channel_names.index(name)) # Mirror selected channel tab into main window title def update_title(self, *x, **y): meta = self.channel().meta - if conf.window_title: - self.win_streamtuner2.set_title("Streamtuner2 - %s" % meta.get("title")) + self.win_streamtuner2.set_title("Streamtuner2 - %s" % meta.get("title")) [cb(meta) for cb in self.hooks["switch"]] # Channel: row{} dict for current station def row(self):