diff --git a/Dalamud/Interface/Internal/DalamudInterface.cs b/Dalamud/Interface/Internal/DalamudInterface.cs index a32db0036..c62fbb89c 100644 --- a/Dalamud/Interface/Internal/DalamudInterface.cs +++ b/Dalamud/Interface/Internal/DalamudInterface.cs @@ -144,8 +144,8 @@ internal class DalamudInterface : IDisposable, IServiceType this.tsmLogoTexture = tsmLogoTex; var tsm = Service.Get(); - tsm.AddEntryCore(Loc.Localize("TSMDalamudPlugins", "Plugin Installer"), this.tsmLogoTexture, () => this.pluginWindow.IsOpen = true); - tsm.AddEntryCore(Loc.Localize("TSMDalamudSettings", "Dalamud Settings"), this.tsmLogoTexture, () => this.settingsWindow.IsOpen = true); + tsm.AddEntryCore(Loc.Localize("TSMDalamudPlugins", "Plugin Installer"), this.tsmLogoTexture, this.OpenPluginInstaller); + tsm.AddEntryCore(Loc.Localize("TSMDalamudSettings", "Dalamud Settings"), this.tsmLogoTexture, this.OpenSettings); if (!configuration.DalamudBetaKind.IsNullOrEmpty()) { @@ -239,47 +239,83 @@ internal class DalamudInterface : IDisposable, IServiceType /// /// Opens the . /// - public void OpenLogWindow() => this.consoleWindow.IsOpen = true; + public void OpenLogWindow() + { + this.consoleWindow.IsOpen = true; + this.consoleWindow.BringToFront(); + } /// /// Opens the . /// - public void OpenPluginStats() => this.pluginStatWindow.IsOpen = true; + public void OpenPluginStats() + { + this.pluginStatWindow.IsOpen = true; + this.pluginStatWindow.BringToFront(); + } /// /// Opens the . /// - public void OpenPluginInstaller() => this.pluginWindow.IsOpen = true; + public void OpenPluginInstaller() + { + this.pluginWindow.IsOpen = true; + this.pluginWindow.BringToFront(); + } /// /// Opens the on the plugin changelogs. /// - public void OpenPluginInstallerPluginChangelogs() => this.pluginWindow.OpenPluginChangelogs(); + public void OpenPluginInstallerPluginChangelogs() + { + this.pluginWindow.OpenPluginChangelogs(); + this.pluginWindow.BringToFront(); + } /// /// Opens the . /// - public void OpenSettings() => this.settingsWindow.IsOpen = true; + public void OpenSettings() + { + this.settingsWindow.IsOpen = true; + this.settingsWindow.BringToFront(); + } /// /// Opens the . /// - public void OpenSelfTest() => this.selfTestWindow.IsOpen = true; + public void OpenSelfTest() + { + this.selfTestWindow.IsOpen = true; + this.selfTestWindow.BringToFront(); + } /// /// Opens the . /// - public void OpenStyleEditor() => this.styleEditorWindow.IsOpen = true; + public void OpenStyleEditor() + { + this.styleEditorWindow.IsOpen = true; + this.styleEditorWindow.BringToFront(); + } /// /// Opens the . /// - public void OpenProfiler() => this.profilerWindow.IsOpen = true; + public void OpenProfiler() + { + this.profilerWindow.IsOpen = true; + this.profilerWindow.BringToFront(); + } /// /// Opens the . /// - public void OpenBranchSwitcher() => this.branchSwitcherWindow.IsOpen = true; + public void OpenBranchSwitcher() + { + this.branchSwitcherWindow.IsOpen = true; + this.branchSwitcherWindow.BringToFront(); + } #endregion