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];
|
const std::wstring& folderPath = args[bangInfo.argCount];
|
||||||
if (!folderPath.empty() && (folderPath.length() != 1 || folderPath[0] != L'*'))
|
if (!folderPath.empty() && (folderPath.length() != 1 || folderPath[0] != L'*'))
|
||||||
{
|
{
|
||||||
MeterWindow* skin = GetRainmeter().GetMeterWindow(folderPath);
|
MeterWindow* meterWindow = GetRainmeter().GetMeterWindow(folderPath);
|
||||||
if (skin)
|
if (meterWindow)
|
||||||
{
|
{
|
||||||
skin->DoBang(bangInfo.bang, args);
|
meterWindow->DoBang(bangInfo.bang, args);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -613,10 +613,10 @@ void CommandHandler::DoToggleSkinBang(std::vector<std::wstring>& args, MeterWind
|
|||||||
{
|
{
|
||||||
if (args.size() >= 2)
|
if (args.size() >= 2)
|
||||||
{
|
{
|
||||||
MeterWindow* skin = GetRainmeter().GetMeterWindow(args[0]);
|
MeterWindow* meterWindow = GetRainmeter().GetMeterWindow(args[0]);
|
||||||
if (skin)
|
if (meterWindow)
|
||||||
{
|
{
|
||||||
GetRainmeter().DeactivateSkin(skin, -1);
|
GetRainmeter().DeactivateSkin(meterWindow, -1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user