Options tab with savesent checkbox

This commit is contained in:
adityapk00
2018-10-23 20:41:36 -07:00
parent 2b74c459ee
commit 4c58f70a31
8 changed files with 152 additions and 9 deletions

View File

@@ -11,6 +11,19 @@ Settings::~Settings() {
delete uisettings;
}
bool Settings::getSaveSent() {
// Load from the QT Settings.
QSettings s;
return s.value("options/savesenttx", true).toBool();
}
void Settings::setSaveSent(bool savesent) {
QSettings s;
s.setValue("options/savesenttx", savesent);
}
Settings* Settings::init() {
if (instance == nullptr)
instance = new Settings();