File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -831,6 +831,8 @@ class EditorState extends State<Editor> {
831831 savingState.value = SavingState .saving;
832832 }
833833
834+ await _renameFileNow ();
835+
834836 final filePath = coreInfo.filePath + Editor .extension ;
835837 final Uint8List bson;
836838 final OrderedAssetCache assets;
@@ -919,7 +921,7 @@ class EditorState extends State<Editor> {
919921 final newName = filenameTextEditingController.text;
920922 if (newName == coreInfo.fileName) return ;
921923
922- if (_filenameFormKey.currentState? .validate () ?? false ) {
924+ if (_filenameFormKey.currentState? .validate () != null ) {
923925 coreInfo.filePath = await FileManager .moveFile (
924926 coreInfo.filePath + Editor .extension , newName + Editor .extension );
925927 coreInfo.filePath = coreInfo.filePath
You can’t perform that action at this time.
0 commit comments