* 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
30 lines
600 B
TypeScript
30 lines
600 B
TypeScript
import options from 'options';
|
|
|
|
const { showIcon, showTime } = options.bar.clock;
|
|
|
|
showIcon.connect('changed', () => {
|
|
if (!showTime.value && !showIcon.value) {
|
|
showTime.value = true;
|
|
}
|
|
});
|
|
|
|
showTime.connect('changed', () => {
|
|
if (!showTime.value && !showIcon.value) {
|
|
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;
|
|
}
|
|
});
|