Skip to content

Commit

Permalink
Fixed bug when qrcode is not generated is some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahimhass committed Mar 22, 2023
1 parent be2b391 commit cc3b6c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion QRCode-Generator/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}

func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
return true
true
}

private func setupMacMenu() {
Expand Down
1 change: 1 addition & 0 deletions QRCode-Generator/QRCodeGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class QRCodeGenerator: ObservableObject {
isSuccess = false

guard content.isValidURL else {
lastValidURL = nil
return NSImage(systemSymbolName: "xmark.circle", accessibilityDescription: nil) ?? NSImage()
}

Expand Down

0 comments on commit cc3b6c7

Please sign in to comment.