diff --git a/app/AutoTDP/AutoTDPUI.cs b/app/AutoTDP/AutoTDPUI.cs index 8244a57b..35e0eee6 100644 --- a/app/AutoTDP/AutoTDPUI.cs +++ b/app/AutoTDP/AutoTDPUI.cs @@ -95,9 +95,8 @@ namespace GHelper.AutoTDP p.MinTdp = 15; profileUI = new AutoTDPGameProfileUI(p, this); - profileUI.TopMost = true; profileUI.FormClosed += ProfileUI_FormClosed; - profileUI.Show(); + profileUI.ShowDialog(this); } private void ProfileUI_FormClosed(object? sender, FormClosedEventArgs e) @@ -193,9 +192,8 @@ namespace GHelper.AutoTDP { GameProfile gp = (GameProfile)((RButton)sender).Tag; profileUI = new AutoTDPGameProfileUI(gp, this); - profileUI.TopMost = true; profileUI.FormClosed += ProfileUI_FormClosed; - profileUI.Show(); + profileUI.ShowDialog(this); } public void DeleteGameProfile(GameProfile gp) diff --git a/app/Settings.cs b/app/Settings.cs index add11280..b5dcbcea 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -280,7 +280,6 @@ namespace GHelper private void ButtonAutoTDP_Click(object? sender, EventArgs e) { autoTdpUi = new AutoTDPUI(); - autoTdpUi.TopMost = true; autoTdpUi.FormClosed += AutoTdpUi_FormClosed; autoTdpUi.Disposed += AutoTdpUi_Disposed; if (!autoTdpUi.IsDisposed)