mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Desktop: handle environmental states in Information tab
Create a preference setting on the General Settings page. The setting is saved with the other preferences. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
33e49637ec
commit
7dc8a9850d
5 changed files with 29 additions and 0 deletions
|
@ -138,6 +138,7 @@ void PreferencesDefaults::refreshSettings()
|
|||
ui->extractVideoThumbnails->setChecked(qPrefGeneral::extract_video_thumbnails());
|
||||
ui->videoThumbnailPosition->setValue(qPrefGeneral::extract_video_thumbnails_position());
|
||||
ui->ffmpegExecutable->setText(qPrefGeneral::ffmpeg_executable());
|
||||
ui->extraEnvironmentalDefault->setChecked(prefs.extraEnvironmentalDefault);
|
||||
}
|
||||
|
||||
void PreferencesDefaults::syncSettings()
|
||||
|
@ -160,4 +161,5 @@ void PreferencesDefaults::syncSettings()
|
|||
qPrefDisplay::set_font_size(ui->fontsize->value());
|
||||
qPrefDisplay::set_display_invalid_dives(ui->displayinvalid->isChecked());
|
||||
qPrefDisplay::set_animation_speed(ui->velocitySlider->value());
|
||||
qPrefGeneral::set_extraEnvironmentalDefault(ui->extraEnvironmentalDefault->isChecked());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue