release/0.3.5 #1

Merged
Ray merged 2 commits from release/0.3.5 into master 2024-08-07 18:50:51 +00:00
Showing only changes of commit d6d603bfce - Show all commits

View File

@ -87,6 +87,10 @@ namespace RokettoLaunch.Windows.Forms
{ {
if (this.ModelInfo.IsGroup) 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); this.LeftContextMenuStrip?.Show(this, e.Location);
} }
else else
@ -169,14 +173,11 @@ namespace RokettoLaunch.Windows.Forms
private void InvalidateGroupMenu(TileModel model) private void InvalidateGroupMenu(TileModel model)
{ {
var iconSize = ((this.MainForm?.CurrentSession?.ShowBigIcons ?? true) ? 24 : 16);
if (this.LeftContextMenuStrip == null) if (this.LeftContextMenuStrip == null)
{ {
this.LeftContextMenuStrip = new ContextMenuStrip(); this.LeftContextMenuStrip = new ContextMenuStrip();
} }
this.LeftContextMenuStrip.ImageScalingSize = new Size(iconSize, iconSize);
this.LeftContextMenuStrip.Items.Clear(); this.LeftContextMenuStrip.Items.Clear();
foreach (TileModel item in model?.Items ?? new System.Collections.Generic.List<TileModel>()) foreach (TileModel item in model?.Items ?? new System.Collections.Generic.List<TileModel>())