move main

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-08-23 17:12:34 +02:00
parent 4199b6aa7f
commit 032397e1fd
4 changed files with 5 additions and 55 deletions
-11
View File
@@ -50,7 +50,6 @@ type Model struct {
rulesManaged bool
rulesWritable bool
pendingRules []pendingRule
fatalShown bool
ModalOpen bool
}
@@ -172,16 +171,6 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
case actionMsg:
if msg.err != nil {
if msg.err == guard.ErrPermission {
if m.fatalShown {
return m, nil
}
m.fatalShown = true
return m, modal.Show("Permission Error", newPermissionModal(),
modal.WithModalStyle(permissionModalStyle()))
}
return m, errorToast(msg.err)
}
return m, fetchDevices