From 18f6087ab590746c4551c9260c8d59d73c638f30 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Thu, 4 Jun 2026 07:46:04 +0200 Subject: [PATCH] Drop the redundant "Freeze current tab" main-menu entry Freezing the preview tab is already offered by the on-tab snowflake button and the tab's right-click "Freeze tab" entry, so the Window-menu command duplicated an action that is more naturally invoked on the tab itself. DockWorkspace. FreezeCurrentTab stays -- both remaining affordances call it. Assisted-by: Claude:claude-opus-4-8:Claude Code --- ILSpy/Commands/WindowCommands.cs | 15 --------------- ILSpy/Properties/Resources.Designer.cs | 9 --------- ILSpy/Properties/Resources.resx | 3 --- 3 files changed, 27 deletions(-) diff --git a/ILSpy/Commands/WindowCommands.cs b/ILSpy/Commands/WindowCommands.cs index 1759d913d..0b1d9cf0b 100644 --- a/ILSpy/Commands/WindowCommands.cs +++ b/ILSpy/Commands/WindowCommands.cs @@ -39,19 +39,4 @@ namespace ILSpy.Commands { public override void Execute(object? parameter) => dockWorkspace.ResetLayout(); } - - /// - /// VS-style "promote preview tab" command. The persistent MainTab starts as preview - /// (its content is replaced by tree-node selections); freezing makes it a regular tab - /// that keeps its content, and a fresh preview MainTab takes over the - /// tree-selection slot. is a no-op when - /// there's nothing freezable (no MainTab, or MainTab already frozen). - /// - [ExportMainMenuCommand(Header = nameof(Resources.Window_FreezeCurrentTab), ParentMenuID = nameof(Resources._Window), MenuCategory = "Window", MenuOrder = 0)] - [Shared] - [method: ImportingConstructor] - sealed class FreezeCurrentTabCommand(DockWorkspace dockWorkspace) : SimpleCommand - { - public override void Execute(object? parameter) => dockWorkspace.FreezeCurrentTab(); - } } diff --git a/ILSpy/Properties/Resources.Designer.cs b/ILSpy/Properties/Resources.Designer.cs index 9670d6a37..df06621ab 100644 --- a/ILSpy/Properties/Resources.Designer.cs +++ b/ILSpy/Properties/Resources.Designer.cs @@ -3160,15 +3160,6 @@ namespace ICSharpCode.ILSpy.Properties { } } - /// - /// Looks up a localized string similar to _Pin current tab. - /// - public static string Window_FreezeCurrentTab { - get { - return ResourceManager.GetString("Window_FreezeCurrentTab", resourceCulture); - } - } - /// /// Looks up a localized string similar to _Reset layout. /// diff --git a/ILSpy/Properties/Resources.resx b/ILSpy/Properties/Resources.resx index 7b5a898b5..2ff54f8fb 100644 --- a/ILSpy/Properties/Resources.resx +++ b/ILSpy/Properties/Resources.resx @@ -1084,9 +1084,6 @@ Do you want to continue? _Close all documents - - _Freeze current tab - _Reset layout