Center task modals
This commit is contained in:
@@ -354,8 +354,8 @@ private struct MergeContent: View {
|
||||
}
|
||||
|
||||
@MainActor
|
||||
func confirmDiscard(_ task: ByreTask, _ store: Store, _ overlays: Overlays, anchor: CGRect?) async {
|
||||
if !(await overlays.showConfirm(["Discard \"\(task.name)\"?"], action: "Discard", danger: true, anchor: anchor)) {
|
||||
func confirmDiscard(_ task: ByreTask, _ store: Store, _ overlays: Overlays) async {
|
||||
if !(await overlays.showConfirm(["Discard \"\(task.name)\"?"], action: "Discard", danger: true, inPane: true)) {
|
||||
return
|
||||
}
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user