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

Method set_modified_indicator

gui/widgets.py:322–328  ·  view source on GitHub ↗

Show/hide modified indicator on the label.

(self, modified: bool)

Source from the content-addressed store, hash-verified

320 return self._key
321
322 def set_modified_indicator(self, modified: bool) -> None:
323 """Show/hide modified indicator on the label."""
324 base_label = self._label.cget("text").replace(" *", "")
325 if modified:
326 self._label.configure(text=f"{base_label} *", text_color=COLORS["warning"])
327 else:
328 self._label.configure(text=base_label, text_color=COLORS["text_primary"])
329
330
331class CTkEnvSettingsPanel(ctk.CTkScrollableFrame):

Callers 4

_on_setting_changeMethod · 0.80
saveMethod · 0.80
reloadMethod · 0.80
reset_to_defaultsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected