citra-qt: disable directory watcher during CIA installation (#4284)
* disable directory watcher during CIA installation fixes several errors while installing multiple CIAs * use braces in if statement
This commit is contained in:

committed by
Sebastian Valle

parent
756a3d404a
commit
ce823759cc
@@ -1013,6 +1013,7 @@ void GMainWindow::OnMenuInstallCIA() {
|
||||
return;
|
||||
|
||||
ui.action_Install_CIA->setEnabled(false);
|
||||
game_list->setDirectoryWatcherEnabled(false);
|
||||
progress_bar->show();
|
||||
progress_bar->setMaximum(INT_MAX);
|
||||
|
||||
@@ -1066,7 +1067,9 @@ void GMainWindow::OnCIAInstallReport(Service::AM::InstallStatus status, QString
|
||||
void GMainWindow::OnCIAInstallFinished() {
|
||||
progress_bar->hide();
|
||||
progress_bar->setValue(0);
|
||||
game_list->setDirectoryWatcherEnabled(true);
|
||||
ui.action_Install_CIA->setEnabled(true);
|
||||
game_list->PopulateAsync(UISettings::values.game_dirs);
|
||||
}
|
||||
|
||||
void GMainWindow::OnMenuRecentFile() {
|
||||
|
Reference in New Issue
Block a user