diff --git a/main.cpp b/main.cpp index e22ac762..41b409d0 100644 --- a/main.cpp +++ b/main.cpp @@ -79,7 +79,14 @@ int main(int argc, char *argv[]) #endif QGL::setPreferredPaintEngine(QPaintEngine::OpenGL); + bool force_login_screen=false; QApplication a(argc, argv); + QStringList args=QCoreApplication::arguments(); + + for (int i=1;iautomaticallyCheckUpdates->setChecked(PREF["Updates_AutoCheck"].toBool()); + if (!PREF.Exists("SkipLoginScreen")) PREF["SkipLoginScreen"]=false; + ui->skipLoginScreen->setChecked(PREF["SkipLoginScreen"].toBool()); + if (!PREF.Exists("Updates_CheckFrequency")) PREF["Updates_CheckFrequency"]=3; ui->updateCheckEvery->setValue(PREF["Updates_CheckFrequency"].toInt()); if (PREF.Exists("Updates_LastChecked")) { @@ -213,6 +216,8 @@ void PreferencesDialog::Save() (*profile)["SyncOximetry"]=ui->oximetrySync->isChecked(); (*profile)["OximeterType"]=ui->oximetryType->currentText(); + PREF["SkipLoginScreen"]=ui->skipLoginScreen->isChecked(); + (*profile)["EventWindowSize"]=ui->eventWindowSlider->value(); if (ui->squareWavePlots->isChecked() != (*profile)["SquareWavePlots"].toBool()) { diff --git a/preferencesdialog.ui b/preferencesdialog.ui index e4d9fe5d..4932c955 100644 --- a/preferencesdialog.ui +++ b/preferencesdialog.ui @@ -9,7 +9,7 @@ 0 0 - 500 + 599 330 @@ -179,40 +179,6 @@ This takes extra space, and has been known to cause problems on certain computer - - - - - 0 - 0 - - - - You may need to disable this if your experiencing crashes. -It has no effect on single cpu machines. - - - Use Multi-Threading - - - - - - - Skip empty days with Prev & Next buttons above daily view calendar - - - Skip Empty Days - - - - - - - Square Wave Plots - - - @@ -265,6 +231,23 @@ It has no effect on single cpu machines. + + + + Square Wave Plots + + + + + + + Skip empty days with Prev & Next buttons above daily view calendar + + + Skip Empty Days + + + @@ -648,19 +631,6 @@ p, li { white-space: pre-wrap; } - - - - - 0 - 0 - - - - Graph Text - - - @@ -677,19 +647,6 @@ p, li { white-space: pre-wrap; } - - - - - 0 - 0 - - - - Graph Titles - - - @@ -706,29 +663,9 @@ p, li { white-space: pre-wrap; } - - - - Big Text - - - - - - - 6 - - - 72 - - - 18 - - - @@ -917,6 +854,52 @@ p, li { white-space: pre-wrap; } + + + + + 0 + 0 + + + + Graph Text + + + + + + + + 0 + 0 + + + + Graph Titles + + + + + + + Big Text + + + + + + + 6 + + + 72 + + + 18 + + + @@ -1015,26 +998,11 @@ p, li { white-space: pre-wrap; } - + - &Updates + &General - - 0 - - - 4 - - - 0 - - - 0 - - - 0 - @@ -1200,6 +1168,39 @@ p, li { white-space: pre-wrap; } + + + + General Preferences + + + + + + + 0 + 0 + + + + You may need to disable this if your experiencing crashes. +It has no effect on single cpu machines. + + + Use Multi-Threading + + + + + + + Skip Login Screen + + + + + +