MCPcopy
hub / github.com/yorukot/superfile / handleNotifyModelCancel

Method handleNotifyModelCancel

src/internal/key_function.go:240–252  ·  view source on GitHub ↗
(action notify.ConfirmActionType)

Source from the content-addressed store, hash-verified

238}
239
240func (m *model) handleNotifyModelCancel(action notify.ConfirmActionType) tea.Cmd {
241 switch action {
242 case notify.RenameAction:
243 m.cancelRename()
244 case notify.QuitAction:
245 m.modelQuitState = notQuitting
246 case notify.DeleteAction, notify.NoAction, notify.PermanentDeleteAction:
247 // Do nothing
248 default:
249 slog.Error("Unknown type of action", "action", action)
250 }
251 return nil
252}
253
254func (m *model) handleNotifyModelConfirm(action notify.ConfirmActionType) tea.Cmd {
255 switch action {

Callers 1

notifyModelOpenKeyMethod · 0.95

Calls 2

cancelRenameMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected