Add reddit frontend setting

This commit is contained in:
tobtoht
2020-12-30 03:48:10 +01:00
parent 94a53abb00
commit 5cf37918e7
8 changed files with 50 additions and 10 deletions
+6
View File
@@ -45,6 +45,7 @@ Settings::Settings(QWidget *parent) :
connect(ui->comboBox_skin, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &Settings::comboBox_skinChanged);
connect(ui->comboBox_blockExplorer, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &Settings::comboBox_blockExplorerChanged);
connect(ui->comboBox_redditFrontend, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &Settings::comboBox_redditFrontendChanged);
// setup preferred fiat currency combobox
QStringList fiatCurrencies;
@@ -94,6 +95,11 @@ void Settings::comboBox_blockExplorerChanged(int pos) {
emit blockExplorerChanged(blockExplorer);
}
void Settings::comboBox_redditFrontendChanged(int pos) {
QString redditFrontend = ui->comboBox_redditFrontend->currentText();
config()->set(Config::redditFrontend, redditFrontend);
}
void Settings::copyToClipboard() {
ui->textLogs->copy();
}