From d34d4e2d544d0f91ad0c4fdd950a2abf3db86efa Mon Sep 17 00:00:00 2001 From: donlaci Date: Fri, 23 Aug 2024 14:47:43 +0200 Subject: [PATCH] spell checker --- .../WorkspacesEditor/Utils/WorkspacesEditorIO.cs | 14 +++++++------- .../WorkspacesEditor/ViewModels/MainViewModel.cs | 6 +++--- src/modules/Workspaces/WorkspacesLauncher/main.cpp | 12 ++++++------ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/modules/Workspaces/WorkspacesEditor/Utils/WorkspacesEditorIO.cs b/src/modules/Workspaces/WorkspacesEditor/Utils/WorkspacesEditorIO.cs index 6b0d4150fc..834c924d6a 100644 --- a/src/modules/Workspaces/WorkspacesEditor/Utils/WorkspacesEditorIO.cs +++ b/src/modules/Workspaces/WorkspacesEditor/Utils/WorkspacesEditorIO.cs @@ -18,8 +18,8 @@ namespace WorkspacesEditor.Utils public enum StorageFile { Common, - Temporaly, - TemporallyLaunch, + Temporal, + TemporalLaunch, } public WorkspacesEditorIO() @@ -157,8 +157,8 @@ namespace WorkspacesEditor.Utils IOUtils ioUtils = new IOUtils(); string fileName = storageFile switch { - StorageFile.Temporaly => TempProjectData.File, - StorageFile.TemporallyLaunch => TempProjectData.LaunchFile, + StorageFile.Temporal => TempProjectData.File, + StorageFile.TemporalLaunch => TempProjectData.LaunchFile, _ => serializer.File, }; @@ -190,15 +190,15 @@ namespace WorkspacesEditor.Utils internal void SerializeTempProject(Project project) { - SerializeWorkspaces(new List() { project }, StorageFile.Temporaly); + SerializeWorkspaces(new List() { project }, StorageFile.Temporal); } internal void RemoveFile(StorageFile storageFile) { string fileName = storageFile switch { - StorageFile.Temporaly => TempProjectData.File, - StorageFile.TemporallyLaunch => TempProjectData.LaunchFile, + StorageFile.Temporal => TempProjectData.File, + StorageFile.TemporalLaunch => TempProjectData.LaunchFile, _ => string.Empty, }; diff --git a/src/modules/Workspaces/WorkspacesEditor/ViewModels/MainViewModel.cs b/src/modules/Workspaces/WorkspacesEditor/ViewModels/MainViewModel.cs index 15ec46e984..bd8cf5e674 100644 --- a/src/modules/Workspaces/WorkspacesEditor/ViewModels/MainViewModel.cs +++ b/src/modules/Workspaces/WorkspacesEditor/ViewModels/MainViewModel.cs @@ -509,13 +509,13 @@ namespace WorkspacesEditor.ViewModels internal async void LaunchAndEdit(Project project) { - // the project might contain removed apps, creating a temporaly copy of it (without removed apps) and launching the copy. + // the project might contain removed apps, creating a temporal copy of it (without removed apps) and launching the copy. Project launchProject = new Project(project, Guid.NewGuid().ToString()); - _workspacesEditorIO.SerializeWorkspaces(new List() { launchProject }, WorkspacesEditorIO.StorageFile.TemporallyLaunch); + _workspacesEditorIO.SerializeWorkspaces(new List() { launchProject }, WorkspacesEditorIO.StorageFile.TemporalLaunch); await Task.Run(() => RunLauncher(launchProject.Id, InvokePoint.LaunchAndEdit)); - _workspacesEditorIO.RemoveFile(WorkspacesEditorIO.StorageFile.TemporallyLaunch); + _workspacesEditorIO.RemoveFile(WorkspacesEditorIO.StorageFile.TemporalLaunch); projectBeforeLaunch = new Project(project); EnterSnapshotMode(true); } diff --git a/src/modules/Workspaces/WorkspacesLauncher/main.cpp b/src/modules/Workspaces/WorkspacesLauncher/main.cpp index cb1e1f6de8..36672b8a40 100644 --- a/src/modules/Workspaces/WorkspacesLauncher/main.cpp +++ b/src/modules/Workspaces/WorkspacesLauncher/main.cpp @@ -109,7 +109,7 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cmdline, int cm } else { - Logger::critical("Incorrect temporaly launch Workspaces file"); + Logger::critical("Incorrect temporal launch Workspaces file"); std::wstring formattedMessage = fmt::format(GET_RESOURCE_STRING(IDS_INCORRECT_FILE_ERROR), WorkspacesData::TempLaunchWorkspacesFile()); MessageBox(NULL, formattedMessage.c_str(), GET_RESOURCE_STRING(IDS_WORKSPACES).c_str(), MB_ICONERROR | MB_OK); return 1; @@ -117,7 +117,7 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cmdline, int cm } else { - Logger::critical("Incorrect temporaly launch Workspaces file"); + Logger::critical("Incorrect temporal launch Workspaces file"); std::wstring formattedMessage = fmt::format(GET_RESOURCE_STRING(IDS_INCORRECT_FILE_ERROR), WorkspacesData::TempLaunchWorkspacesFile()); MessageBox(NULL, formattedMessage.c_str(), GET_RESOURCE_STRING(IDS_WORKSPACES).c_str(), MB_ICONERROR | MB_OK); return 1; @@ -125,7 +125,7 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cmdline, int cm } catch (std::exception ex) { - Logger::critical("Exception on reading temporaly launch Workspaces file: {}", ex.what()); + Logger::critical("Exception on reading temporal launch Workspaces file: {}", ex.what()); std::wstring formattedMessage = fmt::format(GET_RESOURCE_STRING(IDS_FILE_READING_ERROR), WorkspacesData::TempLaunchWorkspacesFile()); MessageBox(NULL, formattedMessage.c_str(), GET_RESOURCE_STRING(IDS_WORKSPACES).c_str(), MB_ICONERROR | MB_OK); return 1; @@ -166,7 +166,7 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cmdline, int cm } else { - Logger::critical("Incorrect temporaly Workspaces file"); + Logger::critical("Incorrect temporal Workspaces file"); std::wstring formattedMessage = fmt::format(GET_RESOURCE_STRING(IDS_INCORRECT_FILE_ERROR), WorkspacesData::TempWorkspacesFile()); MessageBox(NULL, formattedMessage.c_str(), GET_RESOURCE_STRING(IDS_WORKSPACES).c_str(), MB_ICONERROR | MB_OK); return 1; @@ -174,7 +174,7 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cmdline, int cm } else { - Logger::critical("Incorrect temporaly Workspaces file"); + Logger::critical("Incorrect temporal Workspaces file"); std::wstring formattedMessage = fmt::format(GET_RESOURCE_STRING(IDS_INCORRECT_FILE_ERROR), WorkspacesData::TempWorkspacesFile()); MessageBox(NULL, formattedMessage.c_str(), GET_RESOURCE_STRING(IDS_WORKSPACES).c_str(), MB_ICONERROR | MB_OK); return 1; @@ -182,7 +182,7 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cmdline, int cm } catch (std::exception ex) { - Logger::critical("Exception on reading temporaly Workspaces file: {}", ex.what()); + Logger::critical("Exception on reading temporal Workspaces file: {}", ex.what()); std::wstring formattedMessage = fmt::format(GET_RESOURCE_STRING(IDS_FILE_READING_ERROR), WorkspacesData::TempWorkspacesFile()); MessageBox(NULL, formattedMessage.c_str(), GET_RESOURCE_STRING(IDS_WORKSPACES).c_str(), MB_ICONERROR | MB_OK); return 1;