Fixes the window title label option (#272)

* fix window title label option not being respected

* add window title icon and label side effects

* add new line to SideEffects.ts

* fix window title children type
This commit is contained in:
painerp
2024-09-21 08:44:54 +02:00
committed by GitHub
parent f27e742be6
commit afb245f8d6
2 changed files with 22 additions and 12 deletions

View File

@@ -13,3 +13,17 @@ showTime.connect('changed', () => {
showIcon.value = true;
}
});
const { label, icon } = options.bar.windowtitle;
label.connect('changed', () => {
if (!label.value && !icon.value) {
icon.value = true;
}
});
icon.connect('changed', () => {
if (!label.value && !icon.value) {
label.value = true;
}
});