refactor: handle error suppression in gui not message stack
This commit is contained in:
committed by
Chris Rizzitello
parent
a37d30c6ab
commit
0446db93e6
@ -1239,11 +1239,15 @@ 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)
|
||||
return;
|
||||
|
||||
m_clientErrorVisible = true;
|
||||
deskflow::gui::messages::showClientConnectError(this, error, address);
|
||||
showAndActivate();
|
||||
deskflow::gui::messages::showClientConnectError(this, error, address);
|
||||
m_clientErrorVisible = false;
|
||||
}
|
||||
|
||||
|
||||
@ -222,9 +222,6 @@ void showClientConnectError(QWidget *parent, deskflow::client::ErrorType error,
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Settings::value(Settings::Gui::ShowGenericClientFailureDialog).toBool())
|
||||
return;
|
||||
|
||||
auto dialog = QMessageBox(parent);
|
||||
dialog.setWindowTitle(title);
|
||||
dialog.setText(message);
|
||||
|
||||
Reference in New Issue
Block a user