From 24e9b335f0414428512eb9d61661b88d906448a5 Mon Sep 17 00:00:00 2001
From: Chris Xiong
Note that actual actions in this menu can be configured in settings.
File operation menu
+ File action menu
diff --git a/doc/troubleshooting.html b/doc/troubleshooting.html
index 7caf8be..8aab8f4 100644
--- a/doc/troubleshooting.html
+++ b/doc/troubleshooting.html
@@ -29,9 +29,10 @@
/having zero volume./has zero volume.
- For those who see a rotated and blinking display, try setting + If you are experiencing rotated and blinking visualization, try setting Visualization-Video/Multisampling to 1 or above. If that doesn't solve your problem or you see nothing at all, please send me more details about your problem (graphics card, drivers etc.). diff --git a/qmidiplayer-desktop/qmpchanneleditor.cpp b/qmidiplayer-desktop/qmpchanneleditor.cpp index 445b68e..5343c1c 100644 --- a/qmidiplayer-desktop/qmpchanneleditor.cpp +++ b/qmidiplayer-desktop/qmpchanneleditor.cpp @@ -77,6 +77,7 @@ void qmpChannelEditor::sendCC() player->setCC(ch,76,ui->dRate->value()); player->setCC(ch,77,ui->dDepth->value()); player->setCC(ch,78,ui->dDelay->value()); + qmpMainWindow::getInstance()->invokeCallback("channel.ccchange",nullptr); } void qmpChannelEditor::showEvent(QShowEvent *e) diff --git a/qmidiplayer-desktop/qmppresetselect.cpp b/qmidiplayer-desktop/qmppresetselect.cpp index 8286053..8c28fe6 100644 --- a/qmidiplayer-desktop/qmppresetselect.cpp +++ b/qmidiplayer-desktop/qmppresetselect.cpp @@ -102,6 +102,7 @@ void qmpPresetSelector::on_pbOk_clicked() else if(s=="CC#0")b<<=7; plyr->setChannelPreset(ch,b,p); } + qmpMainWindow::getInstance()->invokeCallback("preset.set",nullptr); close(); } diff --git a/simple-visualization/simplevisualization.cpp b/simple-visualization/simplevisualization.cpp index 71dac7a..c8191b6 100644 --- a/simple-visualization/simplevisualization.cpp +++ b/simple-visualization/simplevisualization.cpp @@ -13,8 +13,11 @@ void qmpSimpleVisualization::init() api->registerOptionUint("","","Keyboard/bcolor"+std::to_string(i),0,0xffffff,0xff66ccff); } p=new qmpKeyboardWindow(api,(QWidget*)api->getMainWindow()); - uihs=api->registerUIHook("main.stop",[this](const void*,void*){this->p->resetAll();},nullptr); - uihsk=api->registerUIHook("main.seek",[this](const void*,void*){this->p->resetAll();},nullptr); + auto refreshfn=[this](const void*,void*){this->p->resetAll();}; + uihs=api->registerUIHook("main.stop",refreshfn,nullptr); + uihsk=api->registerUIHook("main.seek",refreshfn,nullptr); + uihsk=api->registerUIHook("preset.set",refreshfn,nullptr); + uihsk=api->registerUIHook("channel.ccchange",refreshfn,nullptr); } void qmpSimpleVisualization::deinit() { -- cgit v1.2.3