mirror of https://github.com/gmbrax/Pilgrim.git
				
				
				
			Compare commits
	
		
			No commits in common. "8e04c5b3c7a255fdd5298e11951147c3f95a5a19" and "60311bc71411b7053dd502fda999939cf76f1948" have entirely different histories.
		
	
	
		
			8e04c5b3c7
			...
			60311bc714
		
	
		| 
						 | 
					@ -33,24 +33,17 @@ class EditEntryScreen(Screen):
 | 
				
			||||||
        Binding("escape", "back_to_list", "Back to List"),
 | 
					        Binding("escape", "back_to_list", "Back to List"),
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __init__(self, diary_id: int = 1,create_new: bool = True):
 | 
					    def __init__(self, diary_id: int = 1):
 | 
				
			||||||
        super().__init__()
 | 
					        super().__init__()
 | 
				
			||||||
 | 
					 | 
				
			||||||
        if create_new:
 | 
					 | 
				
			||||||
            self.current_entry_index = -1
 | 
					 | 
				
			||||||
            self.is_new_entry = True
 | 
					 | 
				
			||||||
            self.next_entry_id = None
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        else:
 | 
					 | 
				
			||||||
            self.is_new_entry = False
 | 
					 | 
				
			||||||
            self.current_entry_index = 0
 | 
					 | 
				
			||||||
            self.next_entry_id = 1
 | 
					 | 
				
			||||||
        self.new_entry_title = ""
 | 
					 | 
				
			||||||
        self.new_entry_content = ""
 | 
					 | 
				
			||||||
        self.diary_id = diary_id
 | 
					        self.diary_id = diary_id
 | 
				
			||||||
        self.diary_name = f"Diary {diary_id}"
 | 
					        self.diary_name = f"Diary {diary_id}"
 | 
				
			||||||
 | 
					        self.current_entry_index = 0
 | 
				
			||||||
        self.entries: List[Entry] = []
 | 
					        self.entries: List[Entry] = []
 | 
				
			||||||
 | 
					        self.is_new_entry = False
 | 
				
			||||||
        self.has_unsaved_changes = False
 | 
					        self.has_unsaved_changes = False
 | 
				
			||||||
 | 
					        self.new_entry_content = ""
 | 
				
			||||||
 | 
					        self.new_entry_title = "New Entry"
 | 
				
			||||||
 | 
					        self.next_entry_id = 1
 | 
				
			||||||
        self._updating_display = False
 | 
					        self._updating_display = False
 | 
				
			||||||
        self._original_content = ""
 | 
					        self._original_content = ""
 | 
				
			||||||
        self.is_refreshing = False
 | 
					        self.is_refreshing = False
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue