mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
alright #22
Co-Authored-By: Seiike <122684677+Seeike@users.noreply.github.com>
This commit is contained in:
parent
c0eafa1c74
commit
b0142ba192
1 changed files with 5 additions and 6 deletions
|
|
@ -74,16 +74,15 @@ struct SettingsViewModule: View {
|
|||
}
|
||||
.disabled(selectedModuleId == module.id.uuidString)
|
||||
}
|
||||
.swipeActions {
|
||||
Button(role: .destructive) {
|
||||
if selectedModuleId != module.id.uuidString {
|
||||
.swipeActions(edge: .trailing) {
|
||||
if selectedModuleId != module.id.uuidString {
|
||||
Button(role: .destructive) {
|
||||
moduleManager.deleteModule(module)
|
||||
DropManager.shared.showDrop(title: "Module Removed", subtitle: "", duration: 1.0, icon: UIImage(systemName: "trash"))
|
||||
} label: {
|
||||
Label("Delete", systemImage: "trash")
|
||||
}
|
||||
} label: {
|
||||
Label("Delete", systemImage: "trash")
|
||||
}
|
||||
.disabled(selectedModuleId == module.id.uuidString)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue