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

Method _start

gui/app.py:1555–1575  ·  view source on GitHub ↗

Start the service.

(self)

Source from the content-addressed store, hash-verified

1553 return cleaned
1554
1555 def _start(self):
1556 """Start the service."""
1557 if self.running:
1558 messagebox.showwarning(
1559 get_text("warning_title"), get_text("service_already_running")
1560 )
1561 return
1562
1563 account = self.selected_account.get()
1564 if not account:
1565 messagebox.showerror(
1566 get_text("error_title"), get_text("select_account_error")
1567 )
1568 return
1569
1570 # Save last account
1571 self.config["last_account"] = account
1572 self._save_config()
1573
1574 mode = self.run_mode.get()
1575 self._start_internal(mode=mode, account=account)
1576
1577 def _start_internal(
1578 self,

Callers 1

_bind_shortcutsMethod · 0.95

Calls 4

_save_configMethod · 0.95
_start_internalMethod · 0.95
get_textFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected