Closed AtilioA closed 4 years ago
If I simply remove the
&& this.opt.period.toLowerCase() == 'night'
condition, it works fine
Just realized that doing this breaks the label during the day. enabledNight
refers only to whether QRedshift should have different settings at night, not if it is actually using night settings. Anyways, my problem remains.
You use your Linux in Portuguese that's the problem i guess. Try change the language to English just to test.
Yes, it works if I change to English.
I will think in something to fix it!
Fixed in version 1.5.2.
I fixed it by this.opt.enabledNight && this.opt.period.toLowerCase().startsWith("n")
.
I just test if the period string start with n, if true show night info.
It should work for all language that night start with n, in Portuguese will work fine.
But will not work for strange languages.
this.opt.period
on the right when applet is active: My location settings:This leads to
this.opt.enabledNight && this.opt.period.toLowerCase() == 'night'
being false and label showing day settings despite night mode being active. If I simply remove the&& this.opt.period.toLowerCase() == 'night'
condition, it works fine (sincethis.opt.enabledNight
istrue
). Is there a reason for needing another check besidesthis.opt.enabledNight
? Or perhaps this should be an OR condition instead?Screenshot depicting the problem: