mirror of https://github.com/gmbrax/Pilgrim.git
Compare commits
No commits in common. "4f153c5a5bd1241bfd68e6b1dab50c3418bdaff3" and "f838a5b42132d76877df8080b02f1ae4e7be71bc" have entirely different histories.
4f153c5a5b
...
f838a5b421
|
|
@ -46,9 +46,7 @@ class NewDiaryModal(ModalScreen[str]):
|
||||||
def action_create_diary(self) -> None:
|
def action_create_diary(self) -> None:
|
||||||
diary_name = self.name_input.value.strip()
|
diary_name = self.name_input.value.strip()
|
||||||
if diary_name:
|
if diary_name:
|
||||||
|
|
||||||
self.call_later(self._async_create_diary, diary_name)
|
self.call_later(self._async_create_diary, diary_name)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.notify("Diary name cannot be empty.", severity="warning")
|
self.notify("Diary name cannot be empty.", severity="warning")
|
||||||
self.name_input.focus()
|
self.name_input.focus()
|
||||||
|
|
@ -77,4 +75,3 @@ class NewDiaryModal(ModalScreen[str]):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue