Mercurial > libervia-desktop-kivy
diff cagou/plugins/plugin_wid_settings.py @ 372:1481f09c9175
settings (android): don't expose autoconnect parameters:
autoconnection parameters are used on Android to reconnect automatically any profile
connected, so we use the new `extra` parameter to ignore them, avoiding an accidental
change by the user which would be confusing.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 27 Jan 2020 21:17:08 +0100 |
parents | 080b6cc17f53 |
children | 4d660b252487 |
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_settings.py Mon Jan 27 21:17:08 2020 +0100 +++ b/cagou/plugins/plugin_wid_settings.py Mon Jan 27 21:17:08 2020 +0100 @@ -19,9 +19,9 @@ from sat.core import log as logging -log = logging.getLogger(__name__) from sat.core.i18n import _ from sat.core.constants import Const as C +from sat.tools.common import data_format from sat_frontends.quick_frontend import quick_widgets from kivy.uix.label import Label from kivy.uix.widget import Widget @@ -29,6 +29,9 @@ from cagou import G +log = logging.getLogger(__name__) + + PLUGIN_INFO = { "name": _("settings"), "main": "CagouSettings", @@ -48,7 +51,12 @@ # then up when the UI is loaded self.loading_widget = Widget() self.add_widget(self.loading_widget) - G.host.bridge.getParamsUI(-1, C.APP_NAME, self.profile, callback=self.getParamsUICb, errback=self.getParamsUIEb) + extra = {} + G.local_platform.updateParamsExtra(extra) + G.host.bridge.getParamsUI( + -1, C.APP_NAME, data_format.serialise(extra), self.profile, + callback=self.getParamsUICb, + errback=self.getParamsUIEb) def changeWidget(self, widget): self.clear_widgets([self.loading_widget])