Fixed theme restore at start up

This commit is contained in:
Hugo Teso 2017-04-05 16:29:01 +02:00
parent d790ad69df
commit c14f3beaeb
2 changed files with 6 additions and 1 deletions

View File

@ -1729,7 +1729,7 @@ void MemoryWidget::frameLoadFinished(bool ok) {
QSettings settings;
if (settings.value("dark").toBool()) {
QString js = "r2ui.graph_panel.set_theme('dark');";
qDebug() << ui->graphWebView->page()->mainFrame()->evaluateJavaScript(js);
ui->graphWebView->page()->mainFrame()->evaluateJavaScript(js);
}
}
}

View File

@ -19,6 +19,11 @@ SideBar::SideBar(MainWindow *main) :
} else {
ui->respButton->setChecked(false);
}
if (settings.value("dark").toBool()) {
ui->themesButton->setChecked(true);
} else {
ui->themesButton->setChecked(false);
}
}
SideBar::~SideBar()