mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-02 23:28:52 +03:00
Fix unlocalized save changes prompt
This commit is contained in:
parent
3b08e045e7
commit
cfc82a55c1
2
paint.py
2
paint.py
@ -1505,7 +1505,7 @@ class PaintApp(App[None]):
|
||||
|
||||
def prompt_save_changes(self, filename: str, callback: Callable[[], None]) -> None:
|
||||
filename = os.path.basename(filename)
|
||||
message = "Save changes to " + filename + "?"
|
||||
message = _("Save changes to %1?", filename)
|
||||
def handle_button(button: Button) -> None:
|
||||
if not button.has_class("yes") and not button.has_class("no"):
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user