From 0c874404b63d86b2ae3fe54ccbece8aa947a9345 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Mon, 31 Aug 2026 03:26:43 -0600 Subject: [PATCH] fix(qt): explain blocked QConnect logout Keep fail-closed teardown semantics while telling the user how to recover when logout cannot proceed safely. cx --- crates/qbz-i18n/translations/de/LC_MESSAGES/qbz-ui.po | 3 +++ crates/qbz-i18n/translations/en/LC_MESSAGES/qbz-ui.po | 3 +++ crates/qbz-i18n/translations/es/LC_MESSAGES/qbz-ui.po | 3 +++ crates/qbz-i18n/translations/fr/LC_MESSAGES/qbz-ui.po | 3 +++ crates/qbz-i18n/translations/ja/LC_MESSAGES/qbz-ui.po | 3 +++ crates/qbz-i18n/translations/nl/LC_MESSAGES/qbz-ui.po | 3 +++ crates/qbz-i18n/translations/pt/LC_MESSAGES/qbz-ui.po | 3 +++ crates/qbz-i18n/translations/ru/LC_MESSAGES/qbz-ui.po | 3 +++ crates/qbz-qt/src/main.rs | 6 ++++++ 9 files changed, 30 insertions(+) diff --git a/crates/qbz-i18n/translations/de/LC_MESSAGES/qbz-ui.po b/crates/qbz-i18n/translations/de/LC_MESSAGES/qbz-ui.po index afbe1c424..0d0f4a39a 100644 --- a/crates/qbz-i18n/translations/de/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-i18n/translations/de/LC_MESSAGES/qbz-ui.po @@ -6248,3 +6248,6 @@ msgstr "Mixerregler auswählen" msgid "Change mixer control" msgstr "Mixerregler ändern" + +msgid "Qobuz Connect could not shut down safely. Quit and reopen QBZ, then try logging out again." +msgstr "Qobuz Connect konnte nicht sicher beendet werden. Beenden und öffnen Sie QBZ erneut und versuchen Sie dann noch einmal, sich abzumelden." diff --git a/crates/qbz-i18n/translations/en/LC_MESSAGES/qbz-ui.po b/crates/qbz-i18n/translations/en/LC_MESSAGES/qbz-ui.po index 2ca40e693..d1126c532 100644 --- a/crates/qbz-i18n/translations/en/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-i18n/translations/en/LC_MESSAGES/qbz-ui.po @@ -1868,3 +1868,6 @@ msgstr "Choose mixer control" msgid "Change mixer control" msgstr "Change mixer control" + +msgid "Qobuz Connect could not shut down safely. Quit and reopen QBZ, then try logging out again." +msgstr "Qobuz Connect could not shut down safely. Quit and reopen QBZ, then try logging out again." diff --git a/crates/qbz-i18n/translations/es/LC_MESSAGES/qbz-ui.po b/crates/qbz-i18n/translations/es/LC_MESSAGES/qbz-ui.po index db59f27a7..cfd540efe 100644 --- a/crates/qbz-i18n/translations/es/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-i18n/translations/es/LC_MESSAGES/qbz-ui.po @@ -6254,3 +6254,6 @@ msgstr "Elegir control de mezclador" msgid "Change mixer control" msgstr "Cambiar control de mezclador" + +msgid "Qobuz Connect could not shut down safely. Quit and reopen QBZ, then try logging out again." +msgstr "Qobuz Connect no pudo cerrarse de forma segura. Cierra y vuelve a abrir QBZ, y luego intenta cerrar sesión de nuevo." diff --git a/crates/qbz-i18n/translations/fr/LC_MESSAGES/qbz-ui.po b/crates/qbz-i18n/translations/fr/LC_MESSAGES/qbz-ui.po index 3ee1a8ccd..43e0b8460 100644 --- a/crates/qbz-i18n/translations/fr/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-i18n/translations/fr/LC_MESSAGES/qbz-ui.po @@ -6246,3 +6246,6 @@ msgstr "Choisir la commande de mixage" msgid "Change mixer control" msgstr "Changer la commande de mixage" + +msgid "Qobuz Connect could not shut down safely. Quit and reopen QBZ, then try logging out again." +msgstr "Qobuz Connect n’a pas pu s’arrêter en toute sécurité. Quittez et rouvrez QBZ, puis réessayez de vous déconnecter." diff --git a/crates/qbz-i18n/translations/ja/LC_MESSAGES/qbz-ui.po b/crates/qbz-i18n/translations/ja/LC_MESSAGES/qbz-ui.po index 757c3e5a6..195373eb6 100644 --- a/crates/qbz-i18n/translations/ja/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-i18n/translations/ja/LC_MESSAGES/qbz-ui.po @@ -6230,3 +6230,6 @@ msgstr "ミキサーコントロールを選択" msgid "Change mixer control" msgstr "ミキサーコントロールを変更" + +msgid "Qobuz Connect could not shut down safely. Quit and reopen QBZ, then try logging out again." +msgstr "Qobuz Connect を安全に終了できませんでした。QBZ を終了して再度開き、もう一度ログアウトしてください。" diff --git a/crates/qbz-i18n/translations/nl/LC_MESSAGES/qbz-ui.po b/crates/qbz-i18n/translations/nl/LC_MESSAGES/qbz-ui.po index 32975d377..67ac61e47 100644 --- a/crates/qbz-i18n/translations/nl/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-i18n/translations/nl/LC_MESSAGES/qbz-ui.po @@ -6236,3 +6236,6 @@ msgstr "Mixerregelaar kiezen" msgid "Change mixer control" msgstr "Mixerregelaar wijzigen" + +msgid "Qobuz Connect could not shut down safely. Quit and reopen QBZ, then try logging out again." +msgstr "Qobuz Connect kon niet veilig worden afgesloten. Sluit QBZ af, open het opnieuw en probeer daarna nogmaals uit te loggen." diff --git a/crates/qbz-i18n/translations/pt/LC_MESSAGES/qbz-ui.po b/crates/qbz-i18n/translations/pt/LC_MESSAGES/qbz-ui.po index fb2aa0b41..5ea6be8b5 100644 --- a/crates/qbz-i18n/translations/pt/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-i18n/translations/pt/LC_MESSAGES/qbz-ui.po @@ -6246,3 +6246,6 @@ msgstr "Escolher controlo do misturador" msgid "Change mixer control" msgstr "Alterar controlo do misturador" + +msgid "Qobuz Connect could not shut down safely. Quit and reopen QBZ, then try logging out again." +msgstr "Não foi possível encerrar o Qobuz Connect com segurança. Feche e reabra o QBZ e tente terminar sessão novamente." diff --git a/crates/qbz-i18n/translations/ru/LC_MESSAGES/qbz-ui.po b/crates/qbz-i18n/translations/ru/LC_MESSAGES/qbz-ui.po index b5c06a510..42b033491 100644 --- a/crates/qbz-i18n/translations/ru/LC_MESSAGES/qbz-ui.po +++ b/crates/qbz-i18n/translations/ru/LC_MESSAGES/qbz-ui.po @@ -6266,3 +6266,6 @@ msgstr "Выбрать регулятор микшера" msgid "Change mixer control" msgstr "Изменить регулятор микшера" + +msgid "Qobuz Connect could not shut down safely. Quit and reopen QBZ, then try logging out again." +msgstr "Не удалось безопасно завершить работу Qobuz Connect. Закройте и снова откройте QBZ, затем повторите выход из учётной записи." diff --git a/crates/qbz-qt/src/main.rs b/crates/qbz-qt/src/main.rs index 878c63816..6bb82bc59 100644 --- a/crates/qbz-qt/src/main.rs +++ b/crates/qbz-qt/src/main.rs @@ -1086,12 +1086,18 @@ pub(crate) fn do_logout() { Ok(_) => { integrations_qt::set_qobuz_authenticated(true); deep_link_qt::set_online_session(true); + crate::toast_qt::error(qbz_i18n::t( + "Qobuz Connect could not shut down safely. Quit and reopen QBZ, then try logging out again.", + )); return; } Err(e) => { log::error!("[qbz-qt] QConnect logout teardown failed: {e}"); integrations_qt::set_qobuz_authenticated(true); deep_link_qt::set_online_session(true); + crate::toast_qt::error(qbz_i18n::t( + "Qobuz Connect could not shut down safely. Quit and reopen QBZ, then try logging out again.", + )); return; } }