Skip to content

Commit

Permalink
Merge pull request #295 from vyshnav-vinod/main
Browse files Browse the repository at this point in the history
fix: Window now closes when 'x' is clicked
  • Loading branch information
tomlin7 authored Apr 23, 2024
2 parents 83437bd + 5c88a2d commit 92a5af4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion biscuit/core/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def close_dir(self, *_) -> None:

def quit(self, *_) -> None:
self.base.on_close_app()
self.base.destroy()
# self.base.destroy()

def toggle_maximize(self, *_) -> None:
match platform.system():
Expand Down
1 change: 1 addition & 0 deletions biscuit/core/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def register_onfocus(self, fn) -> None:

def on_close_app(self) -> None:
self.editorsmanager.delete_all_editors()
self.destroy()

def on_focus(self, *_) -> None:
for fn in self.onfocus_callbacks:
Expand Down

0 comments on commit 92a5af4

Please sign in to comment.