Skip to content

Commit

Permalink
feat: add callback for confirm screen
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Feb 11, 2024
1 parent ad3d838 commit e1afdc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion smassh/ui/widgets/settings/option.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ def load_current_setting(self) -> None:
def select_prev_option(self) -> None:
pass

def perform(self, ok: bool) -> None:
if not ok:
return

def select_next_option(self) -> None:
self.app.push_screen("confirm")
self.app.push_screen("confirm", self.perform)

def render(self) -> RenderableType:
return self.message
Expand Down

0 comments on commit e1afdc1

Please sign in to comment.