Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
8235310e
Commit
8235310e
authored
Aug 18, 2022
by
Pablo Rauzy
Committed by
Christoph Cullmann
Aug 18, 2022
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/keyboardmacros/keyboardmacrosplugin.cpp
View file @
8235310e
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment