Make it clear that led indicator is only supported by x11

This commit is contained in:
dec05eba
2025-11-07 22:11:43 +01:00
parent 70df557c2b
commit 4992185323
3 changed files with 9 additions and 3 deletions

View File

@@ -229,7 +229,7 @@ namespace gsr {
}
std::unique_ptr<Widget> ScreenshotSettingsPage::create_led_indicator() {
auto checkbox = std::make_unique<CheckBox>(&get_theme().body_font, "Blink scroll lock led when taking a screenshot");
auto checkbox = std::make_unique<CheckBox>(&get_theme().body_font, gsr_info->system_info.display_server == DisplayServer::X11 ? "Blink scroll lock led when taking a screenshot" : "Blink scroll lock led when taking a screenshot (not supported by Wayland)");
checkbox->set_checked(true);
led_indicator_checkbox_ptr = checkbox.get();
return checkbox;