Implement automatic database refresh on root category listing.

This commit is contained in:
codestation
2016-10-25 21:22:51 -04:00
parent a4366b6d1e
commit c3fc9af152
4 changed files with 95 additions and 58 deletions

View File

@@ -174,6 +174,9 @@ void ConfigWidget::setDefaultData()
bool ignorexml = settings.value("ignorexml", true).toBool();
ui->ignorexmlCheck->setChecked(ignorexml);
bool autorefresh = settings.value("autorefresh", false).toBool();
ui->refreshCheck->setChecked(autorefresh);
QString versiontype = settings.value("versiontype", "zero").toString();
QString customVersion = settings.value("customversion", "00.000.000").toString();
@@ -285,7 +288,7 @@ void ConfigWidget::accept()
settings.setValue("versiontype", "custom");
settings.setValue("ignorexml", ui->ignorexmlCheck->isChecked());
settings.setValue("autorefresh", ui->refreshCheck->isChecked());
settings.setValue("customversion", ui->psversionEdit->text());
bool ok;

View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>519</width>
<height>559</height>
<height>577</height>
</rect>
</property>
<property name="windowTitle">
@@ -357,6 +357,16 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="refreshCheck">
<property name="text">
<string>Automatic database refresh (experimental)</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ignorexmlCheck">
<property name="text">