Skip to content

Unify NightColorManager internal state of inhibited

Junfeng Qiao requested to merge junfengqiao/kwin:nightcolor into master

Hello, this is a commit to fix the bug described here: kdeplasma-addons!74 (closed)

I am a totally beginner here so I might make some stupid mistakes: it seems there are two variables m_inhibitReferenceCount and m_isGloballyInhibited that record the internal state for on/off of night color, doesn't these lead to duplication and potentially inconsistency? I tried to unify them together so now the keyboard shortcut and night color control plasmoid can work together.

Thank you for looking at the PR and hope I could make a small contribution 😀

Merge request reports