[feat] add manual signaling reconnect action

This commit is contained in:
lamagu
2026-10-11 15:35:11 +08:00
committed by dijunkun
parent 52ca253980
commit 0e7d175631
6 changed files with 39 additions and 0 deletions
@@ -1367,6 +1367,12 @@ void GuiApplication::BindMainCallbacks() {
LOG_WARN("Copy local id failed: {}", SDL_GetError());
}
});
main->on_signal_reconnect_requested([this] {
LOG_INFO("Signal reconnect requested from the status bar");
if (ForceSignalReconnect() != 0) {
LOG_WARN("Signal reconnect could not be started");
}
});
main->on_toggle_password_visibility([this] {
show_password_ = !show_password_;
ui_->main->set_password_visible(show_password_);