MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / removePageIfPresent

Method removePageIfPresent

internal/ui/components/app.go:92–96  ·  view source on GitHub ↗

removePageIfPresent removes a page by name if it exists, ignoring errors.

(name string)

Source from the content-addressed store, hash-verified

90
91// removePageIfPresent removes a page by name if it exists, ignoring errors.
92func (a *App) removePageIfPresent(name string) {
93 if a.pages != nil && a.pages.HasPage(name) {
94 _ = a.pages.RemovePage(name)
95 }
96}
97
98// startRefresh attempts to acquire the refresh guard.
99// Returns (token, true) on success; (0, false) if another refresh is already in progress.

Callers 14

displayVMCreateFormMethod · 0.95
showMigrationDialogMethod · 0.95
showMessageMethod · 0.95
displayLXCCreateFormMethod · 0.95
NewVMConfigPageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected