diff --git a/theseus_gui/src/helpers/profile.js b/theseus_gui/src/helpers/profile.js index 1436a60e7..5e89c79dc 100644 --- a/theseus_gui/src/helpers/profile.js +++ b/theseus_gui/src/helpers/profile.js @@ -17,6 +17,8 @@ import { invoke } from '@tauri-apps/api/tauri' */ export async function create(name, gameVersion, modloader, loaderVersion, icon, noWatch) { + //Trim string name to avoid "Unable to find directory" + name = name.trim(); return await invoke('plugin:profile_create|profile_create', { name, gameVersion,