Skip to content

Commit af69fef

Browse files
committed
[FlashpointManager] Add minimize button, force top-most window when auto-downloading components
1 parent 4f89c85 commit af69fef

4 files changed

Lines changed: 17 additions & 19 deletions

File tree

FlashpointManager/src/Forms/Main.Designer.cs

Lines changed: 13 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FlashpointManager/src/Forms/Main.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.IO;
3-
using System.Linq;
43
using System.Threading.Tasks;
54
using System.Windows.Forms;
65
using System.Xml;
@@ -100,7 +99,7 @@ private void ChangeButton_Click(object sender, EventArgs e)
10099

101100
FPM.UpdateMode = false;
102101

103-
var operationWindow = new Operate();
102+
var operationWindow = new Operate() { TopMost = FPM.AutoDownload != "" };
104103
operationWindow.ShowDialog();
105104

106105
FPM.SyncManager();

FlashpointManager/src/Forms/Operate.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FlashpointManager/src/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static void Main(string[] args)
105105
}
106106

107107
// Display the application window
108-
Application.Run(new Main() { Opacity = FPM.AutoDownload.Length > 0 ? 0 : 1 });
108+
Application.Run(new Main() { Opacity = FPM.AutoDownload == "" ? 1 : 0 });
109109
}
110110
}
111111
}

0 commit comments

Comments
 (0)