Show a dialog only if no game directories are set

This commit is contained in:
Ked 2025-03-26 22:39:51 +08:00
parent 5c53beb6a0
commit d2aa912c37

View File

@ -157,11 +157,8 @@ int main(int argc, char* argv[]) {
}
}
bool allInstallDirsDisabled =
std::ranges::all_of(Config::getGameInstallDirsEnabled(), [](bool val) { return !val; });
// If no game directory is set and no command line argument, prompt for it
if (Config::getGameInstallDirs().empty() && allInstallDirsDisabled &&
if (Config::getGameInstallDirsEnabled().empty() &&
!has_command_line_argument) {
GameInstallDialog dlg;
dlg.exec();