mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
CommandHandler: Cosmetics
This commit is contained in:
parent
eb74f359ba
commit
05964e9f7f
@ -158,10 +158,10 @@ void DoBang(const BangInfo& bangInfo, std::vector<std::wstring>& args, MeterWind
|
||||
const std::wstring& folderPath = args[bangInfo.argCount];
|
||||
if (!folderPath.empty() && (folderPath.length() != 1 || folderPath[0] != L'*'))
|
||||
{
|
||||
MeterWindow* skin = GetRainmeter().GetMeterWindow(folderPath);
|
||||
if (skin)
|
||||
MeterWindow* meterWindow = GetRainmeter().GetMeterWindow(folderPath);
|
||||
if (meterWindow)
|
||||
{
|
||||
skin->DoBang(bangInfo.bang, args);
|
||||
meterWindow->DoBang(bangInfo.bang, args);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -613,10 +613,10 @@ void CommandHandler::DoToggleSkinBang(std::vector<std::wstring>& args, MeterWind
|
||||
{
|
||||
if (args.size() >= 2)
|
||||
{
|
||||
MeterWindow* skin = GetRainmeter().GetMeterWindow(args[0]);
|
||||
if (skin)
|
||||
MeterWindow* meterWindow = GetRainmeter().GetMeterWindow(args[0]);
|
||||
if (meterWindow)
|
||||
{
|
||||
GetRainmeter().DeactivateSkin(skin, -1);
|
||||
GetRainmeter().DeactivateSkin(meterWindow, -1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user