diff --git a/Code/Main/MainForm.cs b/Code/Main/MainForm.cs index c15dedf..10d842d 100644 --- a/Code/Main/MainForm.cs +++ b/Code/Main/MainForm.cs @@ -825,20 +825,24 @@ private void MainForm_Resize(object sender, EventArgs e) bool leftScrollbar = flowPanelLeft.VerticalScroll.Visible; bool rightScrollbar = flowPanelRight.VerticalScroll.Visible; - Panel[] lPanels = new Panel[] { mdlPanel, esrganPanel, compPanel, prevInfoPanel, prevCtrlPanel, leftSpacer1, leftSpacer2, leftSpacer3, leftSpacer4, }; + Panel[] lPanels = new Panel[] { aiPanel, mdlPanel, esrganPanel, compPanel, prevInfoPanel, prevCtrlPanel, leftSpacer1, leftSpacer2, leftSpacer3, leftSpacer4, }; Panel[] rPanels = new Panel[] { imgOptsPanel, preResizePanel, postResizePanel, savePanel, upscalePanel, rSpacer1, rSpacer2, rSpacer3, rSpacer4, }; if (leftScrollbar && !lastLeftScrollbarState) - { foreach(Panel p in lPanels) p.Width -= scrollbarOffset; } + foreach(Panel p in lPanels) + p.Width -= scrollbarOffset; if (!leftScrollbar && lastLeftScrollbarState) - { foreach (Panel p in lPanels) p.Width += scrollbarOffset; } + foreach (Panel p in lPanels) + p.Width += scrollbarOffset; if (rightScrollbar && !lastRightScrollbarState) - { foreach (Panel p in rPanels) p.Width -= scrollbarOffset; } + foreach (Panel p in rPanels) + p.Width -= scrollbarOffset; if (!rightScrollbar && lastRightScrollbarState) - { foreach (Panel p in rPanels) p.Width += scrollbarOffset; } + foreach (Panel p in rPanels) + p.Width += scrollbarOffset; lastLeftScrollbarState = leftScrollbar; lastRightScrollbarState = rightScrollbar; diff --git a/Code/Main/Servers.cs b/Code/Main/Servers.cs index 3f8a0ef..ddf1528 100644 --- a/Code/Main/Servers.cs +++ b/Code/Main/Servers.cs @@ -53,7 +53,7 @@ public static async Task Init(ComboBox comboBox = null) Logger.Log($"[Servers] Closest Server: {closest.Key[0]} ({closest.Value} ms)", true); closestServer = new Server { name = closest.Key[0], host = closest.Key[1], pattern = closest.Key[2] }; - if(comboBox != null) + if (comboBox != null) { for (int i = 0; i < comboBox.Items.Count; i++) {