Windows: cleaning database now shows progress window

This commit is contained in:
zvon 2020-04-13 22:38:37 +02:00
parent 86fedf623c
commit 4e52a98eae

View File

@ -385,7 +385,10 @@ void MainWindow::dbRefresh() {
} }
void MainWindow::dbClean() { void MainWindow::dbClean() {
cleanDB(); ProgressWindow pw( mw->hInst, mw->window );
std::thread t( cleanDB, pw.getWindow() );
t.detach();
pw.mainLoop();
} }
void MainWindow::dbManage() { void MainWindow::dbManage() {