Skip to content

Commit

Permalink
🧹 schedext-window: adjust name of modes
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Nov 18, 2024
1 parent 2a3a7e7 commit c0a0c8f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/schedext-window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ void disable_scx_service() noexcept {
constexpr auto get_scx_mode_from_str(std::string_view scx_mode) noexcept -> scx::SchedMode {
using namespace std::string_view_literals;

if (scx_mode == "gaming"sv) {
if (scx_mode == "Gaming"sv) {
return scx::SchedMode::Gaming;
} else if (scx_mode == "lowlatency"sv) {
} else if (scx_mode == "Lowlatency"sv) {
return scx::SchedMode::LowLatency;
} else if (scx_mode == "powersave"sv) {
} else if (scx_mode == "Powersave"sv) {
return scx::SchedMode::PowerSave;
}
return scx::SchedMode::Auto;
Expand Down Expand Up @@ -185,10 +185,10 @@ SchedExtWindow::SchedExtWindow(QWidget* parent)

// Selecting the performance profile
QStringList sched_profiles;
sched_profiles << "default"
<< "gaming"
<< "lowlatency"
<< "powersave";
sched_profiles << "Auto"
<< "Gaming"
<< "Lowlatency"
<< "Powersave";
m_ui->schedext_profile_combo_box->addItems(sched_profiles);

m_ui->current_sched_label->setText(QString::fromStdString(get_current_scheduler()));
Expand Down

0 comments on commit c0a0c8f

Please sign in to comment.