()
| 226 | } |
| 227 | |
| 228 | func (bm *BackupManager) createBackup() { |
| 229 | if isPending, pendingOperation := models.GlobalState.IsVMPending(bm.vm); isPending { |
| 230 | bm.app.showMessageSafe(fmt.Sprintf("Cannot create backup while '%s' is in progress", pendingOperation)) |
| 231 | return |
| 232 | } |
| 233 | |
| 234 | bm.form.ShowCreateForm(func() { |
| 235 | bm.app.SetFocus(bm) |
| 236 | // We don't auto-reload here because it's async and we use the callback |
| 237 | }) |
| 238 | } |
| 239 | |
| 240 | // trackBackupTask delegates task monitoring to the App |
| 241 | func (bm *BackupManager) trackBackupTask(upid string) { |
no test coverage detected