fix: error on start shows gui
do not show client errors if the windows is not visible
This commit is contained in:
parent
ce97817d45
commit
b432cbc145
1 changed files with 1 additions and 4 deletions
|
|
@ -1243,10 +1243,7 @@ void MainWindow::remoteHostChanged(const QString &newRemoteHost)
|
||||||
|
|
||||||
void MainWindow::showClientError(deskflow::client::ErrorType error, const QString &address)
|
void MainWindow::showClientError(deskflow::client::ErrorType error, const QString &address)
|
||||||
{
|
{
|
||||||
if (!Settings::value(Settings::Gui::ShowGenericClientFailureDialog).toBool())
|
if (!Settings::value(Settings::Gui::ShowGenericClientFailureDialog).toBool() || !isVisible() || m_clientErrorVisible)
|
||||||
return;
|
|
||||||
|
|
||||||
if (m_clientErrorVisible)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_clientErrorVisible = true;
|
m_clientErrorVisible = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue