diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-03-12 09:09:07 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-03-12 09:09:07 +0100 |
commit | 75de9c0ac782fa6fecb92f3a22f311b517856abb (patch) | |
tree | d54b8e9165eaec49f0104caa3dc9eb936a708526 /src/drumkitloader.cc | |
parent | faf80b071b54f2f736df2390171f7b3b939d03c2 (diff) |
Add reload_counter to Settings and use it in DrumKitLoader to reload a drumkit whenever it changes (ie. increments).
Diffstat (limited to 'src/drumkitloader.cc')
-rw-r--r-- | src/drumkitloader.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc index 1d66597..103b60c 100644 --- a/src/drumkitloader.cc +++ b/src/drumkitloader.cc @@ -201,7 +201,8 @@ void DrumKitLoader::thread_main() } bool newKit = false; - if(getter.drumkit_file.hasChanged()) + if(getter.drumkit_file.hasChanged() || + getter.reload_counter.hasChanged()) { loadkit(getter.drumkit_file.getValue()); newKit = true; |