mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-12 03:21:09 +00:00
Fix: Firewall alert would open two alerts
This commit is contained in:
1 parent
dc32e92d9a
commit
e638479203
5 files changed
+7
-54
No files matched your search
@@ -38,6 +38,9 @@ class ErrorAlertHandler {
|
||||
case .packetFilterError:
|
||||
openAlert(type: .NetworkFilter)
|
||||
return
|
||||
case .firewallError:
|
||||
openAlert(type: .Firewall)
|
||||
return
|
||||
case .requiredFieldMissing(errorMessage: let errorMessage):
|
||||
description = errorMessage + fixInstructions
|
||||
case .ukey2:
|
||||
@@ -85,6 +88,7 @@ class ErrorAlertHandler {
|
||||
|
||||
func openAlert(type: AlertType) {
|
||||
log("Opening Alert for \(type)")
|
||||
AudioManager.playErrorSound()
|
||||
|
||||
DispatchQueue.main.async { [self] in
|
||||
// Create an NSWindow to host the SwiftUI view
|
||||
|
||||
Reference in new issue
Block a user