1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-12-21 03:10:06 +01:00

🐛 More MainActor fixes

This commit is contained in:
2025-11-26 12:30:11 +01:00
parent bd85584c88
commit 42e7edc01c
2 changed files with 7 additions and 6 deletions

View File

@@ -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;

View File

@@ -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