def _save(self): settings = Settings() settings.remove('ProtocolHandlers') settings.beginGroup('ProtocalHandlers') for key, val in self._protocolHandlers.items(): settings.setValue(key, val) settings.endGroup()
def _resetToDefaults(self): settings = Settings() settings.beginGroup('NavigationBar') settings.remove('Layout') settings.remove('ShowSearchBar') settings.endGroup() windows = gVar.app.windows() for window in windows: window.navigationBar()._loadSettings()