Do not use top most, but dialog for the game settings.

This commit is contained in:
IceStormNG
2024-03-02 17:30:18 +01:00
parent 12d7afc532
commit adcec744d4
2 changed files with 2 additions and 5 deletions

View File

@@ -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)

View File

@@ -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)