mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 18:38:51 +00:00
Fixed theme restore at start up
This commit is contained in:
parent
d790ad69df
commit
c14f3beaeb
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user