mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Return boolean when charging state or charge level has changed
(to know if the redrawing is necessary) Change-Id: Iebb1d2ba1f188815b01bcbd6e632244f6169b3f9
This commit is contained in:
@@ -13,12 +13,12 @@ void AppsWindow::setTitle(I18n::Message title) {
|
||||
m_titleBarView.setTitle(title);
|
||||
}
|
||||
|
||||
void AppsWindow::updateBatteryLevel() {
|
||||
m_titleBarView.setChargeState(Ion::Battery::level());
|
||||
bool AppsWindow::updateBatteryLevel() {
|
||||
return m_titleBarView.setChargeState(Ion::Battery::level());
|
||||
}
|
||||
|
||||
void AppsWindow::updateIsChargingState() {
|
||||
m_titleBarView.setIsCharging(Ion::Battery::isCharging());
|
||||
bool AppsWindow::updateIsChargingState() {
|
||||
return m_titleBarView.setIsCharging(Ion::Battery::isCharging());
|
||||
}
|
||||
|
||||
void AppsWindow::refreshPreferences() {
|
||||
|
||||
Reference in New Issue
Block a user