We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 420c059 commit d7b9a77Copy full SHA for d7b9a77
lib/pages/editor/editor.dart
@@ -921,7 +921,8 @@ class EditorState extends State<Editor> {
921
final newName = filenameTextEditingController.text;
922
if (newName == coreInfo.fileName) return;
923
924
- if (_validateFilenameTextField(newName) == null) {
+ if (_filenameFormKey.currentState?.validate() ??
925
+ _validateFilenameTextField(newName) == null) {
926
coreInfo.filePath = await FileManager.moveFile(
927
coreInfo.filePath + Editor.extension, newName + Editor.extension);
928
coreInfo.filePath = coreInfo.filePath
0 commit comments