From 20959501c9674353fd634f2a8253617e93477613 Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Tue, 25 Jan 2022 00:09:50 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20Fix=20flickering=20of=20incorrec?= =?UTF-8?q?t=20data=20on=20first=20load?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpmon/Domain/Menu/ServicesView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpmon/Domain/Menu/ServicesView.swift b/phpmon/Domain/Menu/ServicesView.swift index 798591e..b2d3fb8 100644 --- a/phpmon/Domain/Menu/ServicesView.swift +++ b/phpmon/Domain/Menu/ServicesView.swift @@ -65,6 +65,10 @@ class ServicesView: NSView, XibLoadable { } func applyAllInfoFieldsFromCachedValue() { + if ServicesView.services.keys.isEmpty { + return + } + DispatchQueue.main.async { self.textFieldPhp.stringValue = PhpEnv.phpInstall.formula.uppercased() self.applyServiceStyling(PhpEnv.phpInstall.formula, self.imageViewPhp)