From 91fd6d395fad08bcf5d068be95575865ccb305cb Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 6 Jan 2025 23:20:12 +0100 Subject: Remove `window::change_title` since it's redundant Applications can change title declaratively. --- runtime/src/window.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'runtime') diff --git a/runtime/src/window.rs b/runtime/src/window.rs index e82d4505..9be61315 100644 --- a/runtime/src/window.rs +++ b/runtime/src/window.rs @@ -73,9 +73,6 @@ pub enum Action { /// Get the current [`Mode`] of the window. GetMode(Id, oneshot::Sender), - /// Change the title of the window. - ChangeTitle(Id, String), - /// Toggle the window to maximized or back ToggleMaximize(Id), @@ -388,11 +385,6 @@ pub fn change_level(id: Id, level: Level) -> Task { task::effect(crate::Action::Window(Action::ChangeLevel(id, level))) } -/// Changes the title of the window. -pub fn change_title(id: Id, title: String) -> Task { - task::effect(crate::Action::Window(Action::ChangeTitle(id, title))) -} - /// Set the inner maximum size of the window. pub fn set_max_size(id: Id, size: Option) -> Task { task::effect(crate::Action::Window(Action::SetMaxSize(id, size))) -- cgit