refactor: more of 24306 (GetPathArg in Dash-specific code)

This commit is contained in:
UdjinM6 2024-11-18 13:24:51 +03:00 committed by pasta
parent 562e3f7b18
commit ba7e500062
No known key found for this signature in database
GPG Key ID: E2F3D7916E722D38
2 changed files with 2 additions and 2 deletions

View File

@ -680,7 +680,7 @@ int GuiMain(int argc, char* argv[])
}
// Validate/set custom css directory
if (gArgs.IsArgSet("-custom-css-dir")) {
fs::path customDir = fs::PathFromString(gArgs.GetArg("-custom-css-dir", ""));
fs::path customDir = gArgs.GetPathArg("-custom-css-dir");
QString strCustomDir = GUIUtil::PathToQString(customDir);
std::vector<QString> vecRequiredFiles = GUIUtil::listStyleSheets();
QString strFile;

View File

@ -481,7 +481,7 @@ fs::path ArgsManager::GetBackupsDirPath()
if (!IsArgSet("-walletbackupsdir"))
return GetDataDirNet() / "backups";
return fs::absolute(fs::PathFromString(GetArg("-walletbackupsdir", "")));
return fs::absolute(GetPathArg("-walletbackupsdir"));
}
void ArgsManager::ClearPathCache()