summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-04-22 18:18:53 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-04-22 18:45:49 +0200
commit28096a402947b05c7e923e075f926263a3279a42 (patch)
tree0dd68b8ab1f84e6fb5ec246ad0d456eb30ff5fd3 /plugingui
parentfcfaa7affa0ac8afeaf38346226beb30fca09733 (diff)
Fix crash when doing async-load in cli.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/drumkitframecontent.cc2
-rw-r--r--plugingui/statusframecontent.cc2
2 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/drumkitframecontent.cc b/plugingui/drumkitframecontent.cc
index 9549d75..2ae298b 100644
--- a/plugingui/drumkitframecontent.cc
+++ b/plugingui/drumkitframecontent.cc
@@ -233,6 +233,7 @@ void DrumkitframeContent::setDrumKitLoadStatus(LoadStatus load_status)
switch(load_status)
{
case LoadStatus::Idle:
+ case LoadStatus::Parsing:
case LoadStatus::Loading:
state = dggui::ProgressBarState::Blue;
break;
@@ -255,6 +256,7 @@ void DrumkitframeContent::setMidiMapLoadStatus(LoadStatus load_status)
case LoadStatus::Idle:
midimap_file_progress.setValue(0);
break;
+ case LoadStatus::Parsing:
case LoadStatus::Loading:
midimap_file_progress.setValue(1);
state = dggui::ProgressBarState::Blue;
diff --git a/plugingui/statusframecontent.cc b/plugingui/statusframecontent.cc
index 0fe8bf2..7990d3e 100644
--- a/plugingui/statusframecontent.cc
+++ b/plugingui/statusframecontent.cc
@@ -88,6 +88,7 @@ void StatusframeContent::updateDrumkitLoadStatus(LoadStatus load_status)
case LoadStatus::Idle:
drumkit_load_status = _("No Kit Loaded");
break;
+ case LoadStatus::Parsing:
case LoadStatus::Loading:
drumkit_load_status = _("Loading...");
break;
@@ -130,6 +131,7 @@ void StatusframeContent::updateMidimapLoadStatus(LoadStatus load_status)
case LoadStatus::Idle:
midimap_load_status = _("No Midimap Loaded");
break;
+ case LoadStatus::Parsing:
case LoadStatus::Loading:
midimap_load_status = _("Loading...");
break;