From 7830db71fa0160d7f40ea9b4650003019c2ff50c Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 14 Jan 2024 00:57:23 -0500 Subject: 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. --- simple-visualization/simplevisualization.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'simple-visualization') 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); } -- cgit v1.2.3