Skip to content

Commit 4500339

Browse files
committed
remove no longer needed Message::IdentifyDisplays
1 parent 31d1df9 commit 4500339

File tree

1 file changed

+0
-27
lines changed
  • cosmic-settings/src/pages/display

1 file changed

+0
-27
lines changed

cosmic-settings/src/pages/display/mod.rs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ pub enum Message {
7878
DialogCountdown,
7979
/// Toggles display on or off.
8080
DisplayToggle(bool),
81-
/// Show numbers on physical displays for identification.
82-
IdentifyDisplays,
8381
/// Configures mirroring status of a display.
8482
Mirroring(Mirroring),
8583
/// Handle night light preferences.
@@ -571,31 +569,6 @@ impl Page {
571569

572570
Message::DisplayToggle(enable) => return self.toggle_display(enable),
573571

574-
Message::IdentifyDisplays => {
575-
return Task::perform(
576-
async {
577-
match tokio::process::Command::new("cosmic-osd")
578-
.arg("identify-displays")
579-
.output()
580-
.await
581-
{
582-
Ok(output) => {
583-
if !output.status.success() {
584-
tracing::error!(
585-
stderr = String::from_utf8_lossy(&output.stderr).as_ref(),
586-
"cosmic-osd identify-displays failed"
587-
);
588-
}
589-
}
590-
Err(e) => {
591-
tracing::error!(why = e.to_string(), "Failed to launch cosmic-osd");
592-
}
593-
}
594-
},
595-
|_| app::Message::None,
596-
);
597-
}
598-
599572
Message::Mirroring(mirroring) => match mirroring {
600573
Mirroring::Disable => return self.toggle_display(true),
601574

0 commit comments

Comments
 (0)