From a8eb561774aef362608a1e2fc3d825e932acddc6 Mon Sep 17 00:00:00 2001 From: MrLiam2614 <79377342+MrLiam2614@users.noreply.github.com> Date: Thu, 16 Nov 2023 00:39:53 +0100 Subject: [PATCH] Fixed bug when creating instance starting or ending with spaces has errors (#845) Based on issue #808 --- theseus_gui/src/helpers/profile.js | 2 ++ 1 file changed, 2 insertions(+) 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,