Skip to content

Commit

Permalink
Temporary rename toggleInspector message
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Jul 30, 2023
1 parent b8b98c2 commit e0fb36d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CotEditor/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ Gw
<menuItem isSeparatorItem="YES" id="XF7-Qo-Y5g"/>
<menuItem title="Show Inspector" keyEquivalent="i" id="I2p-KB-gxR">
<connections>
<action selector="toggleInspector:" target="Ady-hI-5gd" id="To3-Cv-XPF"/>
<action selector="toggleInspector_:" target="Ady-hI-5gd" id="Xmb-c9-cWL"/>
</connections>
</menuItem>
</items>
Expand Down
2 changes: 1 addition & 1 deletion CotEditor/Sources/DocumentWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ extension DocumentWindowController: NSToolbarDelegate {
item.label = String(localized: "Inspector")
item.toolTip = String(localized: "Show document information")
item.image = NSImage(systemSymbolName: "info.circle", accessibilityDescription: item.label)
item.action = #selector(WindowContentViewController.toggleInspector)
item.action = #selector(WindowContentViewController.toggleInspector_)
item.visibilityPriority = .high
return item

Expand Down
4 changes: 2 additions & 2 deletions CotEditor/Sources/WindowContentViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ final class WindowContentViewController: NSSplitViewController {
override func validateUserInterfaceItem(_ item: any NSValidatedUserInterfaceItem) -> Bool {

switch item.action {
case #selector(toggleInspector):
case #selector(toggleInspector_):
(item as? NSMenuItem)?.title = self.isInspectorShown
? String(localized: "Hide Inspector")
: String(localized: "Show Inspector")
Expand Down Expand Up @@ -123,7 +123,7 @@ final class WindowContentViewController: NSSplitViewController {
// MARK: Action Messages

/// Toggle visibility of the inspector.
@IBAction override func toggleInspector(_ sender: Any?) {
@IBAction func toggleInspector_(_ sender: Any?) { // FIXME: Restore action name

NSAnimationContext.current.withAnimation {
self.isInspectorShown.toggle()
Expand Down

0 comments on commit e0fb36d

Please sign in to comment.