Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit daeb486

Browse filesBrowse files
Fix config save
1 parent 0249e1b commit daeb486
Copy full SHA for daeb486

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed

‎lib/core/folder/notes_folder_config.dart

Copy file name to clipboardExpand all lines: lib/core/folder/notes_folder_config.dart
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,16 @@ class NotesFolderConfig extends ChangeNotifier with SettingsSharedPref {
103103

104104
inlineTagPrefixes = getStringSet("inlineTagPrefixes") ?? inlineTagPrefixes;
105105

106+
106107
emojify = getBool("emojify") ?? emojify;
107108
allowedFileExts = getStringSet("allowedFileExts") ?? allowedFileExts;
108109
}
109110

110111
Future<void> save() async {
111112
var def = NotesFolderConfig(id, pref);
112113

113-
await setString(
114-
"noteFileNameFormat",
115-
NoteFileNameFormat.DateOnly.toInternalString(),
116-
NoteFileNameFormat.DateOnly.toInternalString());
114+
await setString("noteFileNameFormat", fileNameFormat.toInternalString(),
115+
def.fileNameFormat.toInternalString());
117116
await setString(
118117
"journalNoteFileNameFormat",
119118
journalFileNameFormat.toInternalString(),

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.