From 42e7edc01c69bb77d560b8766bd4178a31a7b36d Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Wed, 26 Nov 2025 12:30:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20More=20MainActor=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PHP Monitor.xcodeproj/project.pbxproj | 8 ++++---- phpmon/Modules/Domain List/UI/DomainListVC.swift | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/PHP Monitor.xcodeproj/project.pbxproj b/PHP Monitor.xcodeproj/project.pbxproj index 9a49970e..a74212b6 100644 --- a/PHP Monitor.xcodeproj/project.pbxproj +++ b/PHP Monitor.xcodeproj/project.pbxproj @@ -3974,7 +3974,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1740; + CURRENT_PROJECT_VERSION = 1745; DEAD_CODE_STRIPPING = YES; DEBUG = YES; ENABLE_APP_SANDBOX = NO; @@ -4018,7 +4018,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1740; + CURRENT_PROJECT_VERSION = 1745; DEAD_CODE_STRIPPING = YES; DEBUG = NO; ENABLE_APP_SANDBOX = NO; @@ -4200,7 +4200,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1740; + CURRENT_PROJECT_VERSION = 1745; DEAD_CODE_STRIPPING = YES; DEBUG = YES; ENABLE_APP_SANDBOX = NO; @@ -4393,7 +4393,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1740; + CURRENT_PROJECT_VERSION = 1745; DEAD_CODE_STRIPPING = YES; DEBUG = NO; ENABLE_APP_SANDBOX = NO; diff --git a/phpmon/Modules/Domain List/UI/DomainListVC.swift b/phpmon/Modules/Domain List/UI/DomainListVC.swift index 5b551bb1..36ac9831 100644 --- a/phpmon/Modules/Domain List/UI/DomainListVC.swift +++ b/phpmon/Modules/Domain List/UI/DomainListVC.swift @@ -114,6 +114,7 @@ class DomainListVC: NSViewController, NSTableViewDelegate, NSTableViewDataSource domains = Valet.getDomainListable() } + @MainActor private func addNoResultsView() { let child = NSHostingController( rootView: UnavailableContentView( @@ -142,8 +143,8 @@ class DomainListVC: NSViewController, NSTableViewDelegate, NSTableViewDataSource @MainActor public func setUIBusy() { // If it takes more than 0.5s to set the UI to not busy, show a spinner timer = Timer.scheduledTimer(withTimeInterval: 0.5, repeats: false, block: { _ in - Task { - @MainActor in self.progressIndicator.startAnimation(true) + Task { @MainActor in + self.progressIndicator.startAnimation(true) self.labelProgressIndicator.stringValue = "phpman.steps.wait".localized self.progressIndicatorContainer.layer?.cornerRadius = 10 self.progressIndicatorContainer.isHidden = false