Skip to content

Commit

Permalink
Build: Upgrade to v4 actions for node 16 deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Dempsey committed Feb 5, 2024
1 parent 6d2e0b5 commit 7e57e2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/cache@v3
- uses: actions/cache@v4
id: plugin-version-cache
with:
path: plugin.json
Expand All @@ -78,7 +78,7 @@ jobs:
matrix:
platform: [x64, arm64]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v34
with:
submodules: recursive
- uses: actions/cache@v3
Expand Down
6 changes: 4 additions & 2 deletions src/HC-1/HC-1-ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ Hc1ModuleWidget::Hc1ModuleWidget(Hc1Module* module)

Hc1ModuleWidget::~Hc1ModuleWidget()
{
dsp_widget = nullptr;
if (module) {
my_module->unsubscribeHcEvents(this);
module = nullptr;
}
}

Expand Down Expand Up @@ -444,11 +446,11 @@ void Hc1ModuleWidget::pageDown()
//
void Hc1ModuleWidget::set_dsp_ready(bool ready)
{
dsp_widget->set_dsp_ready(ready);
if (dsp_widget) dsp_widget->set_dsp_ready(ready);
}
void Hc1ModuleWidget::set_dsp_value(int index, uint8_t value)
{
dsp_widget->set_dsp_value(index, value);
if (dsp_widget) dsp_widget->set_dsp_value(index, value);
}

//
Expand Down

0 comments on commit 7e57e2e

Please sign in to comment.