Commit 8235310e authored by Pablo Rauzy's avatar Pablo Rauzy Committed by Christoph Cullmann
Browse files

[Keyboard Macros Plugin] Small GUI update fix after record cancelation

What the title says.
parent ca3ccce2
Pipeline #219611 passed with stage
in 10 minutes and 30 seconds
......@@ -263,10 +263,6 @@ void KeyboardMacrosPlugin::stop(bool save)
m_macro.swap(m_tape);
// clear tape
m_tape.clear();
// update GUI
for (auto &pluginView : m_pluginViews) {
pluginView->macroLoaded(!m_macro.isEmpty());
}
} else { // cancel recording
// clear tape
m_tape.clear();
......@@ -274,6 +270,7 @@ void KeyboardMacrosPlugin::stop(bool save)
// update GUI
for (auto &pluginView : m_pluginViews) {
pluginView->recordingOff();
pluginView->macroLoaded(!m_macro.isEmpty());
}
// disconnect focus change events
disconnect(qApp, &QGuiApplication::applicationStateChanged, this, &KeyboardMacrosPlugin::applicationStateChanged);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment