mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Some of the plugins don't work with the dynamic variables so the feature is now disabled for them.
This commit is contained in:
@ -36,6 +36,7 @@
|
||||
#include <tchar.h>
|
||||
#include "MeasureCalc.h"
|
||||
#include "MeasureNet.h"
|
||||
#include "MeasurePlugin.h"
|
||||
#include "MeterButton.h"
|
||||
|
||||
using namespace Gdiplus;
|
||||
@ -1875,7 +1876,7 @@ void CMeterWindow::Update(bool nodraw)
|
||||
{
|
||||
try
|
||||
{
|
||||
if ((*i)->HasDynamicVariables())
|
||||
if ((*i)->HasDynamicVariables() && dynamic_cast<CMeasurePlugin*>((*i)) == NULL) // Plugins are not meant to be reinitialized
|
||||
{
|
||||
(*i)->ReadConfig(m_Parser, (*i)->GetName());
|
||||
}
|
||||
|
Reference in New Issue
Block a user