mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 11:10:44 +00:00
Moved SkipEmptyDays to per Profile preference
This commit is contained in:
parent
900631b74b
commit
c2c3d3f550
@ -856,7 +856,7 @@ void Daily::on_JournalNotesUnderline_clicked()
|
|||||||
|
|
||||||
void Daily::on_prevDayButton_clicked()
|
void Daily::on_prevDayButton_clicked()
|
||||||
{
|
{
|
||||||
if (!PREF.ExistsAndTrue("SkipEmptyDays")) {
|
if (!PROFILE.ExistsAndTrue("SkipEmptyDays")) {
|
||||||
LoadDate(previous_date.addDays(-1));
|
LoadDate(previous_date.addDays(-1));
|
||||||
} else {
|
} else {
|
||||||
QDate d=previous_date;
|
QDate d=previous_date;
|
||||||
@ -872,7 +872,7 @@ void Daily::on_prevDayButton_clicked()
|
|||||||
|
|
||||||
void Daily::on_nextDayButton_clicked()
|
void Daily::on_nextDayButton_clicked()
|
||||||
{
|
{
|
||||||
if (!PREF.ExistsAndTrue("SkipEmptyDays")) {
|
if (!PROFILE.ExistsAndTrue("SkipEmptyDays")) {
|
||||||
LoadDate(previous_date.addDays(1));
|
LoadDate(previous_date.addDays(1));
|
||||||
} else {
|
} else {
|
||||||
QDate d=previous_date;
|
QDate d=previous_date;
|
||||||
|
@ -66,8 +66,8 @@ PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) :
|
|||||||
ui->bigFontBold->setChecked(bigfont->weight()==QFont::Bold);
|
ui->bigFontBold->setChecked(bigfont->weight()==QFont::Bold);
|
||||||
ui->bigFontItalic->setChecked(bigfont->italic());
|
ui->bigFontItalic->setChecked(bigfont->italic());
|
||||||
|
|
||||||
if (!PREF.Exists("SkipEmptyDays")) PREF["SkipEmptyDays"]=true;
|
if (!(*profile).Exists("SkipEmptyDays")) (*profile)["SkipEmptyDays"]=true;
|
||||||
ui->skipEmptyDays->setChecked(PREF["SkipEmptyDays"].toBool());
|
ui->skipEmptyDays->setChecked((*profile)["SkipEmptyDays"].toBool());
|
||||||
|
|
||||||
if (!PREF.Exists("Updates_AutoCheck")) PREF["Updates_AutoCheck"]=true;
|
if (!PREF.Exists("Updates_AutoCheck")) PREF["Updates_AutoCheck"]=true;
|
||||||
ui->automaticallyCheckUpdates->setChecked(PREF["Updates_AutoCheck"].toBool());
|
ui->automaticallyCheckUpdates->setChecked(PREF["Updates_AutoCheck"].toBool());
|
||||||
@ -196,7 +196,7 @@ void PreferencesDialog::Save()
|
|||||||
(*profile)["SyncOximetry"]=ui->oximetrySync->isChecked();
|
(*profile)["SyncOximetry"]=ui->oximetrySync->isChecked();
|
||||||
(*profile)["OximeterType"]=ui->oximetryType->currentText();
|
(*profile)["OximeterType"]=ui->oximetryType->currentText();
|
||||||
|
|
||||||
PREF["SkipEmptyDays"]=ui->skipEmptyDays->isChecked();
|
(*profile)["SkipEmptyDays"]=ui->skipEmptyDays->isChecked();
|
||||||
PREF["Updates_AutoCheck"]=ui->automaticallyCheckUpdates->isChecked();
|
PREF["Updates_AutoCheck"]=ui->automaticallyCheckUpdates->isChecked();
|
||||||
PREF["Updates_CheckFrequency"]=ui->updateCheckEvery->value();
|
PREF["Updates_CheckFrequency"]=ui->updateCheckEvery->value();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user