Added settings for start Quick Start Wizard at first time start.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1984 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-01-08 16:32:10 +00:00
parent 5b526e9574
commit 2ad7d02fa3
4 changed files with 27 additions and 2 deletions

View file

@ -59,6 +59,8 @@ GeneralPage::save(QString &errmsg)
_settings->setValue(QString::fromUtf8("doQuit"), quit());
_settings->setValue(QString::fromUtf8("ClosetoTray"), closetoTray());
_settings->setValue(QString::fromUtf8("FirstRun"), firstRun());
_settings->setRunRetroshareOnBoot(
ui.chkRunRetroshareAtSystemStartup->isChecked());
@ -79,6 +81,9 @@ GeneralPage::load()
ui.checkClosetoTray->setChecked(_settings->value(QString::fromUtf8("ClosetoTray"), false).toBool());
ui.checkBoxWizard->setChecked(_settings->value(QString::fromUtf8("FirstRun"), false).toBool());
}
bool GeneralPage::quit() const {
@ -96,6 +101,11 @@ bool GeneralPage::closetoTray() const {
return ui.checkClosetoTray->isChecked();
}
bool GeneralPage::firstRun() const {
if(ui.checkBoxWizard->isChecked()) return true;
return ui.checkBoxWizard->isChecked();
}
/** Called when the "show on startup" checkbox is toggled. */
void
GeneralPage::toggleShowOnStartup(bool checked)