Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lipstick] Simplify thermal notifier. JB#60190 #40

Merged
merged 1 commit into from Feb 17, 2023

Conversation

pvuorela
Copy link
Contributor

This was quite much unnecessarily complicated, the thermal status getter wasn't working properly, it was a blocking d-bus call, and the whole getter was pointless when the code has been following all the state changes anyway.

Also there's no point in following display state on the notifier since it's creating critical notifications which turn on the screen.

The unit test was somewhat garbage too.

Continuation from #39

Copy link
Contributor

@spiiroin spiiroin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some corner case warnings might slip through, but it was like that already in the old implementation -> lgtm as-is

src/notifications/thermalnotifier.cpp Outdated Show resolved Hide resolved
src/notifications/thermalnotifier.cpp Show resolved Hide resolved
src/notifications/thermalnotifier.cpp Show resolved Hide resolved
This was quite much unnecessarily complicated, the thermal status getter
wasn't working properly, it was a blocking d-bus call, and the
whole getter was pointless when the code has been following all the
state changes anyway.

Also there's no point in following display state on the notifier
since it's creating critical notifications which turn on the screen.

The unit test was somewhat garbage too.
@pvuorela pvuorela merged commit 4a99a84 into master Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants