From d6d603bfcec1bde5aed0d7fec41c3dc80a132273 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 7 Aug 2024 19:25:36 +0100 Subject: [PATCH] Fixed icon size not updating --- Windows/Forms/TilePanel.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Windows/Forms/TilePanel.cs b/Windows/Forms/TilePanel.cs index c8b235b..1af5b60 100644 --- a/Windows/Forms/TilePanel.cs +++ b/Windows/Forms/TilePanel.cs @@ -87,6 +87,10 @@ namespace RokettoLaunch.Windows.Forms { if (this.ModelInfo.IsGroup) { + var iconSize = ((this.MainForm?.CurrentSession?.ShowBigIcons ?? true) ? 24 : 16); + + this.LeftContextMenuStrip.ImageScalingSize = new Size(iconSize, iconSize); + this.LeftContextMenuStrip?.Show(this, e.Location); } else @@ -169,14 +173,11 @@ namespace RokettoLaunch.Windows.Forms private void InvalidateGroupMenu(TileModel model) { - var iconSize = ((this.MainForm?.CurrentSession?.ShowBigIcons ?? true) ? 24 : 16); - if (this.LeftContextMenuStrip == null) { this.LeftContextMenuStrip = new ContextMenuStrip(); } - this.LeftContextMenuStrip.ImageScalingSize = new Size(iconSize, iconSize); this.LeftContextMenuStrip.Items.Clear(); foreach (TileModel item in model?.Items ?? new System.Collections.Generic.List())