Skip to content

Commit 39cc7a0

Browse files
committed
Replace gpu-disable-on-battery toggler with checkbox.
1 parent b8859d8 commit 39cc7a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sensors/gpus.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,11 @@ impl Gpu {
470470
let battery_disable = if self.is_laptop {
471471
Some(settings::item(
472472
fl!("settings-disable-on-battery"),
473-
widget::toggler(config.pause_on_battery).on_toggle(move |value| {
473+
widget::checkbox("", config.pause_on_battery).on_toggle(move |value| {
474474
Message::ToggleDisableOnBattery(self.id().clone(), value)
475+
476+
//widget::toggler(config.pause_on_battery).on_toggle(move |value| {
477+
// Message::ToggleDisableOnBattery(self.id().clone(), value)
475478
}),
476479
))
477480
} else {

0 commit comments

Comments
 (0)