From d8efdb98f77a712f026776b106812bf09d10456f Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sat, 24 Jun 2023 14:39:59 +1000 Subject: [PATCH] batch: Bring form to front after you add a new batch --- FireWallet/BatchForm.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/FireWallet/BatchForm.cs b/FireWallet/BatchForm.cs index ea1a0e1..ca43c28 100644 --- a/FireWallet/BatchForm.cs +++ b/FireWallet/BatchForm.cs @@ -24,6 +24,13 @@ namespace FireWallet this.mainForm = mainForm; batches = new Batch[0]; } + public void bringToFront() + { + // Minimize this form and bring it back up + this.WindowState = FormWindowState.Minimized; + this.Show(); + this.WindowState = FormWindowState.Normal; + } public void AddBatch(string domain, string operation) { if (operation == "BID") return; @@ -314,7 +321,7 @@ namespace FireWallet } applyTransparency(theme); - + bringToFront(); } private void ThemeControl(Control c) {