Skip to content

Commit

Permalink
toga_on_close is an implementation detail.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed May 29, 2021
1 parent 04ed041 commit cabef46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/dummy/toga_dummy/app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from .utils import LoggedObject, not_required_on
from .utils import LoggedObject, not_required, not_required_on
from .window import Window


class MainWindow(Window):
@not_required_on('mobile')
@not_required
def toga_on_close(self):
self.action('handle MainWindow on_close')

Expand Down
4 changes: 2 additions & 2 deletions src/dummy/toga_dummy/window.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .utils import LoggedObject, not_required_on
from .utils import LoggedObject, not_required, not_required_on


class Window(LoggedObject):
Expand Down Expand Up @@ -34,7 +34,7 @@ def show(self):
def set_full_screen(self, is_full_screen):
self._set_value('is_full_screen', is_full_screen)

@not_required_on('mobile')
@not_required
def toga_on_close(self):
self._action('handle Window on_close')

Expand Down

0 comments on commit cabef46

Please sign in to comment.