mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added quotes around log file, missing quote, cosmetics
This commit is contained in:
parent
1d75adc265
commit
d2e15c2761
@ -1283,17 +1283,18 @@ void CRainmeter::ReloadSettings()
|
|||||||
|
|
||||||
void CRainmeter::EditSettings()
|
void CRainmeter::EditSettings()
|
||||||
{
|
{
|
||||||
std::wstring file = L"\"" + m_IniFile;
|
std::wstring file = L'\"' + m_IniFile;
|
||||||
file += L'"';
|
file += L'\"';
|
||||||
RunFile(m_SkinEditor.c_str(), file.c_str());
|
RunFile(m_SkinEditor.c_str(), file.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CRainmeter::EditSkinFile(const std::wstring& name, const std::wstring& iniFile)
|
void CRainmeter::EditSkinFile(const std::wstring& name, const std::wstring& iniFile)
|
||||||
{
|
{
|
||||||
std::wstring args = L"\"" + m_SkinPath;
|
std::wstring args = L'\"' + m_SkinPath;
|
||||||
args += name;
|
args += name;
|
||||||
args += L'\\';
|
args += L'\\';
|
||||||
args += iniFile;
|
args += iniFile;
|
||||||
|
args += L'\"';
|
||||||
RunFile(m_SkinEditor.c_str(), args.c_str());
|
RunFile(m_SkinEditor.c_str(), args.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3241,12 +3242,10 @@ void CRainmeter::StopLogging()
|
|||||||
|
|
||||||
void CRainmeter::ShowLogFile()
|
void CRainmeter::ShowLogFile()
|
||||||
{
|
{
|
||||||
// Check if the file exists
|
std::wstring logFile = L'\"' + m_LogFile;
|
||||||
const WCHAR* logFile = m_LogFile.c_str();
|
logFile += L'\"';
|
||||||
if (_waccess(logFile, 0) != -1)
|
|
||||||
{
|
RunFile(m_LogViewer.c_str(), logFile.c_str());
|
||||||
RunFile(m_LogViewer.c_str(), logFile);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CRainmeter::DeleteLogFile()
|
void CRainmeter::DeleteLogFile()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user