From e21cb9154a02a49f854166bc6b7e88751f1623f4 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 11 Jan 2026 22:11:16 +0100 Subject: [PATCH] Adjust #3677 to evaluate product local path in lazy --- Source/Editor/Modules/UIModule.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Source/Editor/Modules/UIModule.cs b/Source/Editor/Modules/UIModule.cs index db1845b42..8a678370a 100644 --- a/Source/Editor/Modules/UIModule.cs +++ b/Source/Editor/Modules/UIModule.cs @@ -727,12 +727,15 @@ namespace FlaxEditor.Modules cm.AddSeparator(); cm.AddButton("Plugins", () => Editor.Windows.PluginsWin.Show()); cm.AddSeparator(); - var childMenu = cm.AddChildMenu("Open product local folder"); + var childMenu = cm.AddChildMenu("Open Product Local folder"); childMenu.ContextMenu.AddButton("Editor", () => FileSystem.ShowFileExplorer(Globals.ProductLocalFolder)); - string localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); - GameSettings settings = GameSettings.Load(); - string path = Path.Combine(localAppData, settings.CompanyName, settings.ProductName); - _menuToolsOpenLocalFolder = childMenu.ContextMenu.AddButton("Cooked game", () => FileSystem.ShowFileExplorer(path)); + _menuToolsOpenLocalFolder = childMenu.ContextMenu.AddButton("Game", () => + { + string localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); + GameSettings settings = GameSettings.Load(); + string path = Path.Combine(localAppData, settings.CompanyName, settings.ProductName); + FileSystem.ShowFileExplorer(path); + }); // Window MenuWindow = MainMenu.AddButton("Window");