From 6d947ec71d3e237c3a0e413004a0f97649750ab3 Mon Sep 17 00:00:00 2001 From: Ian Ynda-Hummel Date: Fri, 23 Jul 2021 19:27:18 -0400 Subject: [PATCH] Use instance name for layout instead of type name --- Amethyst/Managers/ScreenManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Amethyst/Managers/ScreenManager.swift b/Amethyst/Managers/ScreenManager.swift index 9f08b661..5443febc 100644 --- a/Amethyst/Managers/ScreenManager.swift +++ b/Amethyst/Managers/ScreenManager.swift @@ -320,7 +320,7 @@ final class ScreenManager: 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))