Skip to content

Commit

Permalink
Adding portable sleep.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvorka committed Feb 1, 2024
1 parent 59a9df4 commit 4cf7cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/qt/main_window_presenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ void MainWindowPresenter::slotRunWingmanFromDialog()
" Wingman is talking to GPT provider..." << endl
);
QApplication::processEvents();
std::this_thread::sleep_for(std::chrono::milliseconds(progressStep));
QThread::msleep(progressStep); // portable sleep
progress += progressStep;
this->wingmanDialog->setProgressValue(progress);
}
Expand Down

0 comments on commit 4cf7cbb

Please sign in to comment.