422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
|
if (winlayout):
try: uikit.app_restore(self, winlayout)
except: pass # may fail for disabled/reordered plugin channels
winstate = conf.load("state")
if (winstate):
for id,prev in winstate.items():
self.channels[id].current = prev["current"]
# store window/widget states (sizes, selections, etc.)
def app_state(self, widget):
# gtk widget states
widgetnames = ["win_streamtuner2", "toolbar", "notebook_channels", ] \
+ [id+"_list" for id in self.channel_names] \
+ [id+"_cat" for id in self.channel_names]
|
|
>
|
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
|
if (winlayout):
try: uikit.app_restore(self, winlayout)
except: pass # may fail for disabled/reordered plugin channels
winstate = conf.load("state")
if (winstate):
for id,prev in winstate.items():
try: self.channels[id].current = prev["current"]
except: pass
# store window/widget states (sizes, selections, etc.)
def app_state(self, widget):
# gtk widget states
widgetnames = ["win_streamtuner2", "toolbar", "notebook_channels", ] \
+ [id+"_list" for id in self.channel_names] \
+ [id+"_cat" for id in self.channel_names]
|