From 89ce3f6221323e3d6a7fd776e3ed6f6ec105e226 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 14 Aug 2021 10:33:33 +0200 Subject: [PATCH] Replace periodical status query with another command Fixes #423 --- src/ui/mainwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index e6428e72..cd0ab0ef 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -1777,7 +1777,7 @@ void MainWindow::on_KeepDeviceOnline() { }); try{ - nm::instance()->get_status(); + nm::instance()->get_password_safe_slot_status(); //if long operation in progress jump to catch, // clear the flag otherwise if (long_operation_in_progress) { @@ -1799,6 +1799,9 @@ void MainWindow::on_KeepDeviceOnline() { } emit OperationInProgress(e.progress_bar_value); } + catch (CommandFailedException &e) { + // do not handle errors here + } } void MainWindow::show_progress_window() {