Remove window::change_title since it's redundant
Applications can change title declaratively.
This commit is contained in:
parent
00b60d819b
commit
91fd6d395f
2 changed files with 0 additions and 13 deletions
|
|
@ -73,9 +73,6 @@ pub enum Action {
|
|||
/// Get the current [`Mode`] of the window.
|
||||
GetMode(Id, oneshot::Sender<Mode>),
|
||||
|
||||
/// 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<T>(id: Id, level: Level) -> Task<T> {
|
|||
task::effect(crate::Action::Window(Action::ChangeLevel(id, level)))
|
||||
}
|
||||
|
||||
/// Changes the title of the window.
|
||||
pub fn change_title<T>(id: Id, title: String) -> Task<T> {
|
||||
task::effect(crate::Action::Window(Action::ChangeTitle(id, title)))
|
||||
}
|
||||
|
||||
/// Set the inner maximum size of the window.
|
||||
pub fn set_max_size<T>(id: Id, size: Option<Size>) -> Task<T> {
|
||||
task::effect(crate::Action::Window(Action::SetMaxSize(id, size)))
|
||||
|
|
|
|||
|
|
@ -1321,11 +1321,6 @@ fn run_action<P, C>(
|
|||
}));
|
||||
}
|
||||
}
|
||||
window::Action::ChangeTitle(id, title) => {
|
||||
if let Some(window) = window_manager.get_mut(id) {
|
||||
window.raw.set_title(&title);
|
||||
}
|
||||
}
|
||||
window::Action::SetResizable(id, resizable) => {
|
||||
if let Some(window) = window_manager.get_mut(id) {
|
||||
window.raw.set_resizable(resizable);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue