clang format

This commit is contained in:
ElBread3 2024-10-01 07:53:51 -05:00
parent 64f50f434b
commit 34390f5586
3 changed files with 5 additions and 3 deletions

View file

@ -90,7 +90,8 @@ QWidget* GameInstallDialog::SetupUserDirectory() {
m_userDirectory = new QLineEdit();
QString user_dir;
std::filesystem::path default_path = Config::getEmulatorUserDir().empty()
std::filesystem::path default_path =
Config::getEmulatorUserDir().empty()
? Common::FS::GetUserPath(Common::FS::PathType::ConfigDir)
: Config::getEmulatorUserDir();
Common::FS::PathToQString(user_dir, default_path);

View file

@ -30,7 +30,8 @@ int main(int argc, char* argv[]) {
bool has_command_line_argument = argc > 1;
// Check if the game install directory is set
if ((Config::getGameInstallDir().empty() || Config::getEmulatorUserDir().empty()) && !has_command_line_argument) {
if ((Config::getGameInstallDir().empty() || Config::getEmulatorUserDir().empty()) &&
!has_command_line_argument) {
GameInstallDialog dlg;
dlg.exec();
}

View file

@ -969,7 +969,7 @@ void MainWindow::AddRecentFiles(QString filePath) {
}
Config::setRecentFiles(vec);
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::ConfigDir);
Config::save(config_dir);
Config::save(config_dir / "config.toml");
CreateRecentGameActions(); // Refresh the QActions.
}