Skip to content

Commit

Permalink
fix: dialog box for replacing single file always replaces
Browse files Browse the repository at this point in the history
  • Loading branch information
netdcy committed Sep 5, 2024
1 parent 294eaae commit f33b142
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion FlowVision/Sources/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,11 @@ class ViewController: NSViewController, NSSplitViewDelegate {
case .alertFirstButtonReturn:
return .replace
case .alertSecondButtonReturn:
return .replaceAll
if isSingle {
return .cancel
}else{
return .replaceAll
}
case .alertThirdButtonReturn:
return .skip
case NSApplication.ModalResponse(rawValue: 1003):
Expand Down

0 comments on commit f33b142

Please sign in to comment.