From a13c56a3a3f9a35644a7e8a7cb7cb17d3be25dda Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Wed, 16 Jul 2025 17:24:45 -0300 Subject: [PATCH] Fix the NewDiaryModal not accessing the toml file properly to set the auto_open flag --- src/pilgrim/ui/screens/new_diary_modal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pilgrim/ui/screens/new_diary_modal.py b/src/pilgrim/ui/screens/new_diary_modal.py index ecf25bc..0e713a5 100644 --- a/src/pilgrim/ui/screens/new_diary_modal.py +++ b/src/pilgrim/ui/screens/new_diary_modal.py @@ -12,9 +12,9 @@ class NewDiaryModal(ModalScreen[str]): Binding("escape", "cancel", "Cancel"), Binding("enter", "create_diary", "Create",priority=True), ] - def __init__(self,autoopen:bool = True): + def __init__(self): super().__init__() - self.auto_open = autoopen + self.auto_open = self.app.config_manager.auto_open_new_diary self.name_input = Input(id="NewDiaryModal-NameInput",classes="NewDiaryModal-NameInput") # This ID is fine, it's specific to the input def compose(self) -> ComposeResult: