MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / _reset_config

Method _reset_config

gui/app.py:1440–1448  ·  view source on GitHub ↗

Reset to default settings.

(self)

Source from the content-addressed store, hash-verified

1438 self.status_bar.set_port(int(self.fastapi_port.get()))
1439
1440 def _reset_config(self):
1441 """Reset to default settings."""
1442 if messagebox.askyesno(get_text("confirm_title"), get_text("reset_confirm")):
1443 self.fastapi_port.set(str(DEFAULT_CONFIG["fastapi_port"]))
1444 self.stream_port.set(str(DEFAULT_CONFIG["stream_port"]))
1445 self.proxy_address.set("")
1446 self.proxy_enabled.set(False)
1447 self._save_config()
1448 self._log(get_text("log_settings_reset"))
1449
1450 def _show_about(self):
1451 """Show about dialog."""

Callers

nothing calls this directly

Calls 4

_save_configMethod · 0.95
_logMethod · 0.95
get_textFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected