aboutsummaryrefslogtreecommitdiff
path: root/simple-visualization/simplevisualization.cpp
diff options
context:
space:
mode:
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);
}