Skip to content

Commit

Permalink
refactor: more of 24306 (GetPathArg in Dash-specific code)
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 authored and PastaPastaPasta committed Nov 18, 2024
1 parent 562e3f7 commit ba7e500
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/util/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ba7e500

Please sign in to comment.