Skip to content

Commit

Permalink
Replace periodical status query with another command
Browse files Browse the repository at this point in the history
Fixes #423
  • Loading branch information
szszszsz committed Aug 14, 2021
1 parent 87cb302 commit 89ce3f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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() {
Expand Down

0 comments on commit 89ce3f6

Please sign in to comment.