mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Additional fix to 7849b2a
http://rainmeter.net/forum/viewtopic.php?f=14&t=16014
This commit is contained in:
@ -177,6 +177,8 @@ MeterWindow::MeterWindow(const std::wstring& folderPath, const std::wstring& fil
|
||||
*/
|
||||
MeterWindow::~MeterWindow()
|
||||
{
|
||||
m_State = STATE_CLOSING;
|
||||
|
||||
if (!m_OnCloseAction.empty())
|
||||
{
|
||||
GetRainmeter().ExecuteCommand(m_OnCloseAction.c_str(), this);
|
||||
@ -383,6 +385,7 @@ void MeterWindow::RemoveWindowExStyle(LONG_PTR flag)
|
||||
*/
|
||||
void MeterWindow::Deactivate()
|
||||
{
|
||||
if (m_State == STATE_CLOSING) return;
|
||||
m_State = STATE_CLOSING;
|
||||
|
||||
GetRainmeter().RemoveMeterWindow(this);
|
||||
|
Reference in New Issue
Block a user