2 Commits

Author SHA1 Message Date
b5dad28491 Clear input field after saving note 2025-05-18 13:50:59 +02:00
1e11cd53c9 Do not reset controller when showing 2025-05-18 09:56:04 +02:00

View File

@@ -550,11 +550,10 @@ class MainPageState extends State<MainPage> with WindowListener {
final scratch = await getLatestScratch();
_scratchController.text = scratch?.content ?? "";
_currentEntryController.text = "";
await _checkNavigation();
debugPrint("Data loaded.");
debugPrint("Data loaded");
}
// Load volume setting from database
@@ -586,6 +585,7 @@ class MainPageState extends State<MainPage> with WindowListener {
// Handle current entry
if (currentEntry.isNotEmpty) {
await createNote(currentEntry);
_currentEntryController.clear(); // Clear the input field after saving
}
// Handle scratch pad