resolve merge conflict
This commit is contained in:
@@ -731,8 +731,6 @@ void MainWindow::setupSettingsModal() {
|
||||
|
||||
QObject::connect(settings.comboBoxTheme, &QComboBox::currentTextChanged, [=] (QString theme_name) {
|
||||
this->slot_change_theme(theme_name);
|
||||
// Tell the user to restart
|
||||
QMessageBox::information(this, tr("Restart"), tr("Please restart Silentdragonlite to have the theme apply"), QMessageBox::Ok);
|
||||
});
|
||||
|
||||
// Get Currency Data
|
||||
@@ -1996,7 +1994,7 @@ void MainWindow::slot_change_theme(const QString& theme_name)
|
||||
if (qFile.open(QFile::ReadOnly))
|
||||
{
|
||||
QString styleSheet = QLatin1String(qFile.readAll());
|
||||
this->setStyleSheet(""); // reset styles
|
||||
this->setStyleSheet(""); // resets styles, makes app restart unnecessary
|
||||
this->setStyleSheet(styleSheet);
|
||||
}
|
||||
|
||||
|
||||
@@ -138,6 +138,11 @@
|
||||
<string>Default</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>test</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="chkFetchPrices">
|
||||
<property name="geometry">
|
||||
|
||||
Reference in New Issue
Block a user