mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Fixed transparency toggle in settings.
This commit is contained in:
parent
32d1de9595
commit
56ed573a17
@ -177,10 +177,8 @@ void SettingsLayout::OnCheckboxChanged(cursespp::Checkbox* cb, bool checked) {
|
||||
});
|
||||
}
|
||||
else if (cb == enableTransparencyCheckbox.get()) {
|
||||
auto bgType = Colors::Theme;
|
||||
if (prefs->GetBool(cube::prefs::keys::InheritBackgroundColor.c_str(), false)) {
|
||||
bgType = Colors::Inherit;
|
||||
}
|
||||
auto bgType = checked ? Colors::Inherit : Colors::Theme;
|
||||
prefs->SetBool(cube::prefs::keys::InheritBackgroundColor, checked);
|
||||
app.SetColorBackgroundType(bgType);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user