warn user when closing tabs with unsaved changes
This commit is contained in:
@@ -61,7 +61,7 @@ class Prompt(ModalScreen):
|
||||
elif event.button.id == "confirm-list":
|
||||
self.dismiss(self.query_one("#select").value)
|
||||
|
||||
def __init__(self, question: str, prompt_type: Literal["confirm", "string"], title: str = "Confirm", **kwargs):
|
||||
def __init__(self, question: str, prompt_type: Literal["confirm", "string", "list"], title: str = "Confirm", **kwargs):
|
||||
super().__init__()
|
||||
self.question = question
|
||||
self.window_title = title
|
||||
|
||||
Reference in New Issue
Block a user