fix: error on start shows gui

do not show client errors if the windows is not visible
This commit is contained in:
enzious
2025-10-20 15:31:56 -05:00
committed by Chris Rizzitello
parent ce97817d45
commit b432cbc145

View File

@ -1243,10 +1243,7 @@ void MainWindow::remoteHostChanged(const QString &newRemoteHost)
void MainWindow::showClientError(deskflow::client::ErrorType error, const QString &address)
{
if (!Settings::value(Settings::Gui::ShowGenericClientFailureDialog).toBool())
return;
if (m_clientErrorVisible)
if (!Settings::value(Settings::Gui::ShowGenericClientFailureDialog).toBool() || !isVisible() || m_clientErrorVisible)
return;
m_clientErrorVisible = true;