mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
refactor: more of 24306 (GetPathArg in Dash-specific code)
This commit is contained in:
parent
562e3f7b18
commit
ba7e500062
@ -680,7 +680,7 @@ int GuiMain(int argc, char* argv[])
|
|||||||
}
|
}
|
||||||
// Validate/set custom css directory
|
// Validate/set custom css directory
|
||||||
if (gArgs.IsArgSet("-custom-css-dir")) {
|
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);
|
QString strCustomDir = GUIUtil::PathToQString(customDir);
|
||||||
std::vector<QString> vecRequiredFiles = GUIUtil::listStyleSheets();
|
std::vector<QString> vecRequiredFiles = GUIUtil::listStyleSheets();
|
||||||
QString strFile;
|
QString strFile;
|
||||||
|
@ -481,7 +481,7 @@ fs::path ArgsManager::GetBackupsDirPath()
|
|||||||
if (!IsArgSet("-walletbackupsdir"))
|
if (!IsArgSet("-walletbackupsdir"))
|
||||||
return GetDataDirNet() / "backups";
|
return GetDataDirNet() / "backups";
|
||||||
|
|
||||||
return fs::absolute(fs::PathFromString(GetArg("-walletbackupsdir", "")));
|
return fs::absolute(GetPathArg("-walletbackupsdir"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArgsManager::ClearPathCache()
|
void ArgsManager::ClearPathCache()
|
||||||
|
Loading…
Reference in New Issue
Block a user