Skip to content

Commit

Permalink
Use instance name for layout instead of type name
Browse files Browse the repository at this point in the history
  • Loading branch information
ianyh committed Oct 30, 2021
1 parent 38f844c commit 6d947ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Amethyst/Managers/ScreenManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ final class ScreenManager<Delegate: ScreenManagerDelegate>: NSObject, Codable {
y: screenCenter.y - layoutNameWindow.frame.height / 2.0
)

layoutNameWindow.layoutNameField?.stringValue = currentLayout.flatMap({ type(of: $0).layoutName }) ?? "None"
layoutNameWindow.layoutNameField?.stringValue = currentLayout.flatMap({ $0.layoutName }) ?? "None"
layoutNameWindow.layoutDescriptionLabel?.stringValue = currentLayout?.layoutDescription ?? ""
layoutNameWindow.setFrameOrigin(NSPointFromCGPoint(windowOrigin))

Expand Down

0 comments on commit 6d947ec

Please sign in to comment.