mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 08:54:04 +00:00
Set window edited
This commit is contained in:
parent
4b74f30d0a
commit
ba0d7e35bb
2 changed files with 5 additions and 2 deletions
|
@ -773,6 +773,10 @@ impl<'a> WindowContext<'a> {
|
|||
self.window.platform_window.set_title(title);
|
||||
}
|
||||
|
||||
pub fn set_window_edited(&mut self, edited: bool) {
|
||||
self.window.platform_window.set_edited(edited);
|
||||
}
|
||||
|
||||
pub fn display(&self) -> Option<Rc<dyn PlatformDisplay>> {
|
||||
self.platform
|
||||
.displays()
|
||||
|
|
|
@ -2520,8 +2520,7 @@ impl Workspace {
|
|||
.any(|item| item.has_conflict(cx) || item.is_dirty(cx));
|
||||
if is_edited != self.window_edited {
|
||||
self.window_edited = is_edited;
|
||||
// todo!()
|
||||
// cx.set_window_edited(self.window_edited)
|
||||
cx.set_window_edited(self.window_edited)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue