Refresh graph view overlay if it's open when switching documents (#1691)

* Update Graph View Overlay if it is open when switching documents

* Resolve comments
This commit is contained in:
shipp02
2024-03-15 19:52:20 -07:00
committed by GitHub
parent 5bca931813
commit 56f8ecacc9
2 changed files with 7 additions and 0 deletions
@@ -1126,6 +1126,10 @@ impl DocumentMessageHandler {
self.current_hash() == self.saved_hash
}
pub fn is_graph_overlay_open(&self) -> bool {
self.graph_view_overlay_open
}
pub fn set_auto_save_state(&mut self, is_saved: bool) {
if is_saved {
self.auto_saved_hash = self.current_hash();