fix: c++20 deprecate copy_option

This commit is contained in:
ppphp
2024-03-30 13:52:32 +08:00
committed by wwmayer
parent da7ee06d67
commit aa54ba73df

View File

@@ -224,7 +224,7 @@ void Gui::PreferencePackManager::importConfig(const std::string& packName,
auto savedPreferencePacksDirectory =
fs::path(App::Application::getUserAppDataDir()) / "SavedPreferencePacks";
auto cfgFilename = savedPreferencePacksDirectory / packName / (packName + ".cfg");
fs::copy_file(path, cfgFilename, fs::copy_option::overwrite_if_exists);
fs::copy_file(path, cfgFilename, fs::copy_options::overwrite_existing);
rescan();
}