diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-04-25 17:29:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-25 12:33:20 -0700 |
commit | bd6b714be102b272725d61f8675c2cff322479e7 (patch) | |
tree | 9749cc50e1881295d9a8ebc06e96e5d139da12b5 /subsurface-mobile-main.cpp | |
parent | 757eeced782b5ccfc2555c2e1f9af8bb525dd267 (diff) | |
download | subsurface-bd6b714be102b272725d61f8675c2cff322479e7.tar.gz |
profile: ignore animation-speed setting when printing
When printing, the animation speed was set to 0 by the
caller and later reset to the original value. Instead of
modifying global state, set it internally (in the profile-code)
to zero when in print mode.
This is another small step in making the printing independent
from the shown profile.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'subsurface-mobile-main.cpp')
-rw-r--r-- | subsurface-mobile-main.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp index 0020116da..a23974154 100644 --- a/subsurface-mobile-main.cpp +++ b/subsurface-mobile-main.cpp @@ -83,7 +83,6 @@ int main(int argc, char **argv) set_filename(NULL); // some hard coded settings - qPrefDisplay::set_animation_speed(0); // we render the profile to pixmap, no animations qPrefCloudStorage::set_save_password_local(true); // always show the divecomputer reported ceiling in red |