comparison src/browser/sat_browser/menu.py @ 611:6016c74ee323 frontends_multi_profiles

browser side: web widget is recreated when there is already one
author Goffi <goffi@goffi.org>
date Tue, 10 Feb 2015 19:13:25 +0100
parents a5019e62c3e9
children 1c0d5a87c554
comparison
equal deleted inserted replaced
610:5b19fb5eae7e 611:6016c74ee323
96 96
97 self.add(self.menu_bar) 97 self.add(self.menu_bar)
98 98
99 # General menu 99 # General menu
100 def onWebWidget(self): 100 def onWebWidget(self):
101 web_widget = self.host.widgets.getOrCreateWidget(panels.WebPanel, C.WEB_PANEL_DEFAULT_URL, profile=C.PROF_KEY_NONE) 101 web_widget = self.host.widgets.getOrCreateWidget(panels.WebPanel, C.WEB_PANEL_DEFAULT_URL, profile=C.PROF_KEY_NONE, on_existing_widget=C.WIDGET_RECREATE)
102 self.host.setSelected(web_widget) 102 self.host.setSelected(web_widget)
103 103
104 def onDisconnect(self): 104 def onDisconnect(self):
105 def confirm_cb(answer): 105 def confirm_cb(answer):
106 if answer: 106 if answer: