Skip to content

Commit

Permalink
sculpt: rename suspend -> standby
Browse files Browse the repository at this point in the history
Issue #5174
  • Loading branch information
nfeske authored and chelmuth committed Apr 25, 2024
1 parent d3d1e70 commit b75b400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repos/gems/src/app/sculpt_manager/view/system_power_widget.h
Expand Up @@ -36,7 +36,7 @@ struct Sculpt::System_power_widget : Widget<Vbox>
}
};

enum class Option { UNKNOWN, SUSPEND, REBOOT, OFF };
enum class Option { UNKNOWN, STANDBY, REBOOT, OFF };

Option _selected_option { Option::UNKNOWN };

Expand Down Expand Up @@ -96,7 +96,7 @@ struct Sculpt::System_power_widget : Widget<Vbox>
};

Hosted<Float, Frame, Vbox, Entry>
_suspend { Id { "Suspend" }, Option::SUSPEND },
_suspend { Id { "Standby" }, Option::STANDBY },
_reboot { Id { "Hard reboot" }, Option::REBOOT },
_off { Id { "Hard power down" }, Option::OFF };

Expand Down Expand Up @@ -152,7 +152,7 @@ struct Sculpt::System_power_widget : Widget<Vbox>
{
_power_options.propagate(at, [&] (Option const confirmed) {

if (confirmed == Option::SUSPEND) action.trigger_suspend();
if (confirmed == Option::STANDBY) action.trigger_suspend();
if (confirmed == Option::REBOOT) action.trigger_reboot();
if (confirmed == Option::OFF) action.trigger_power_off();
});
Expand Down

0 comments on commit b75b400

Please sign in to comment.