aboutsummaryrefslogtreecommitdiff
path: root/simple-visualization/simplevisualization.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2024-01-14 00:57:23 -0500
committerGravatar Chris Xiong <chirs241097@gmail.com> 2024-01-14 00:57:23 -0500
commit7830db71fa0160d7f40ea9b4650003019c2ff50c (patch)
tree27f055fd36a64ea76a74587caa22eed617147c03 /simple-visualization/simplevisualization.cpp
parentf7def0d883fa5cab62ef61b40b9f857245be8e6c (diff)
downloadQMidiPlayer-7830db71fa0160d7f40ea9b4650003019c2ff50c.tar.xz
Fixes for channels window and simple visualization.
a) Channel status light doesn't blink in release builds. b) Simple visualization shows blank channel info when opened.
Diffstat (limited to 'simple-visualization/simplevisualization.cpp')
-rw-r--r--simple-visualization/simplevisualization.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/simple-visualization/simplevisualization.cpp b/simple-visualization/simplevisualization.cpp
index 0c3a5b9..514d8af 100644
--- a/simple-visualization/simplevisualization.cpp
+++ b/simple-visualization/simplevisualization.cpp
@@ -8,6 +8,7 @@ qmpSimpleVisualization::qmpSimpleVisualization(qmpPluginAPI *_api)
void qmpSimpleVisualization::show()
{
p->show();
+ p->resetAll();
}
void qmpSimpleVisualization::close()
{
@@ -28,6 +29,8 @@ void qmpSimpleVisualization::init()
};
uihs = api->registerUIHook("main.stop", refreshfn, nullptr);
uihsk = api->registerUIHook("main.seek", refreshfn, nullptr);
+ uihsk = api->registerUIHook("main.start", refreshfn, nullptr);
+ uihsk = api->registerUIHook("main.reset", refreshfn, nullptr);
uihsk = api->registerUIHook("preset.set", refreshfn, nullptr);
uihsk = api->registerUIHook("channel.ccchange", refreshfn, nullptr);
}