diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-02-28 17:28:09 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-02 13:53:23 -0700 |
commit | a0f6b4d0b40aa61f670bb2eee1c898b1942dd42d (patch) | |
tree | 9bc6168463bc42c2de885f2dc8a6952d101d39c9 /icons/tissue.png | |
parent | 0f8560276d1a8116f4d4e7ce9c950d3a433e38c8 (diff) | |
download | subsurface-a0f6b4d0b40aa61f670bb2eee1c898b1942dd42d.tar.gz |
planner: avoid starting unneeded variation thread
When updating the dive profile, a thread is started to calculate
plan-variations. This is done even when only editing the profile
or when variation calculation is disabled by the user. The thread
then exits if it shouldn't calculate the variations.
Turn this around: test whether variations should be calculated
before starting the thread.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'icons/tissue.png')
0 files changed, 0 insertions, 0 deletions