Enable setting for skip metadata retrieval on database scanning.
Enabled settings for enabling/disabling USB/WiFi monitoring. Make sure to init properly in the db multimedia files copied to the PC. Translate system Qt widgets.
This commit is contained in:
@@ -41,7 +41,7 @@ ConfigWidget::ConfigWidget(QWidget *parent) :
|
||||
{
|
||||
ui->setupUi(this);
|
||||
connectSignals();
|
||||
setDefaultDirs();
|
||||
setDefaultData();
|
||||
}
|
||||
|
||||
void ConfigWidget::connectSignals()
|
||||
@@ -62,7 +62,7 @@ void ConfigWidget::connectSignals()
|
||||
connect(ui->buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
}
|
||||
|
||||
void ConfigWidget::setDefaultDirs()
|
||||
void ConfigWidget::setDefaultData()
|
||||
{
|
||||
QString defaultdir;
|
||||
QSettings settings;
|
||||
@@ -78,6 +78,11 @@ void ConfigWidget::setDefaultDirs()
|
||||
defaultdir = QStandardPaths::writableLocation(QStandardPaths::HomeLocation);
|
||||
defaultdir.append(QDir::separator()).append("PSV Updates");
|
||||
ui->urlPath->setText(settings.value("urlPath", defaultdir).toString());
|
||||
|
||||
ui->offlineCheck->setChecked(settings.value("offlineMode", true).toBool());
|
||||
ui->metadataCheck->setChecked(settings.value("skipMetadata", false).toBool());
|
||||
ui->usbCheck->setChecked(settings.value("disableUSB", false).toBool());
|
||||
ui->wifiCheck->setChecked(settings.value("disableWireless", false).toBool());
|
||||
}
|
||||
|
||||
ConfigWidget::~ConfigWidget()
|
||||
@@ -146,6 +151,10 @@ void ConfigWidget::accept()
|
||||
savePath(settings, ui->appPath, "appsPath");
|
||||
savePath(settings, ui->urlPath, "urlPath");
|
||||
settings.setValue("offlineMode", ui->offlineCheck->isChecked());
|
||||
settings.setValue("skipMetadata", ui->metadataCheck->isChecked());
|
||||
settings.setValue("disableUSB", ui->usbCheck->isChecked());
|
||||
settings.setValue("disableWireless", ui->wifiCheck->isChecked());
|
||||
settings.sync();
|
||||
|
||||
done(Accepted);
|
||||
}
|
||||
|
@@ -41,7 +41,7 @@ private:
|
||||
enum browse_buttons {BTN_PHOTO, BTN_MUSIC, BTN_VIDEO, BTN_APPS, BTN_URL};
|
||||
|
||||
void connectSignals();
|
||||
void setDefaultDirs();
|
||||
void setDefaultData();
|
||||
void savePath(QSettings &settings, const QLineEdit *edit, const QString &key);
|
||||
|
||||
Ui::ConfigWidget *ui;
|
||||
|
@@ -242,15 +242,26 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_2">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<widget class="QCheckBox" name="metadataCheck">
|
||||
<property name="text">
|
||||
<string>Skip metadata extraction</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="usbCheck">
|
||||
<property name="text">
|
||||
<string>Disable USB monitoring</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="wifiCheck">
|
||||
<property name="text">
|
||||
<string>Disable Wi-Fi monitoring</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_3">
|
||||
<property name="enabled">
|
||||
@@ -261,26 +272,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_4">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Disable USB monitoring</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_5">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Disable Wi-Fi monitoring</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<item row="0" column="0">
|
||||
|
Reference in New Issue
Block a user