Button::~Button() { clearShortcuts(); if (commandManagerToUse != nullptr) commandManagerToUse->removeListener (callbackHelper); isOn.removeListener (callbackHelper); callbackHelper = nullptr; }
Button::~Button() { isOn.removeListener (this); if (commandManagerToUse != nullptr) commandManagerToUse->removeListener (this); repeatTimer = nullptr; clearShortcuts(); }
void ShortcutButton::resetShortcuts() { clearShortcuts(); addShortcut(m_defaultShortcut); }