Shortcuts: Try to create shortcut link path if it doesn't exist

This commit is contained in:
Megamouse
2024-09-25 23:19:07 +02:00
parent c936de7c20
commit 7106bfcfb9
+1 -1
View File
@@ -104,7 +104,7 @@ namespace gui::utils
}
#endif
if (!fs::is_dir(link_path))
if (!fs::is_dir(link_path) && !fs::create_dir(link_path))
{
sys_log.error("Failed to create shortcut. Folder does not exist: %s", link_path);
return false;