diff --git a/Secretive/Controllers/ShellConfigurationController.swift b/Secretive/Controllers/ShellConfigurationController.swift index 431e0ad..2f3e4c6 100644 --- a/Secretive/Controllers/ShellConfigurationController.swift +++ b/Secretive/Controllers/ShellConfigurationController.swift @@ -29,7 +29,7 @@ struct ShellConfigurationController { } - func addToShell(shellInstructions: ShellConfigInstruction) -> Bool { + @MainActor func addToShell(shellInstructions: ShellConfigInstruction) -> Bool { let openPanel = NSOpenPanel() // This is sync, so no need to strongly retain let delegate = Delegate(name: shellInstructions.shellConfigFilename)