diff options
author | Joe <rbo@gmx.us> | 2024-04-25 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-04-25 20:20:20 +0200 |
commit | 72578a19bf46b6e0519c3bbd5940e229a1cf5605 (patch) | |
tree | 196e6de0a85ba19dab78d35b9b7491990a29855a /src/i_ui.go | |
parent | red (diff) | |
download | hardflip-72578a19bf46b6e0519c3bbd5940e229a1cf5605.tar.gz hardflip-72578a19bf46b6e0519c3bbd5940e229a1cf5605.tar.bz2 hardflip-72578a19bf46b6e0519c3bbd5940e229a1cf5605.tar.xz hardflip-72578a19bf46b6e0519c3bbd5940e229a1cf5605.tar.zst hardflip-72578a19bf46b6e0519c3bbd5940e229a1cf5605.zip |
ok
Diffstat (limited to 'src/i_ui.go')
-rw-r--r-- | src/i_ui.go | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/i_ui.go b/src/i_ui.go index e6155aa..dc7165e 100644 --- a/src/i_ui.go +++ b/src/i_ui.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_ui.go - * Thu Apr 18 16:59:53 2024 + * Thu Apr 25 16:20:41 2024 * Joe * * interfacing with the user @@ -710,6 +710,7 @@ func i_ui(data_dir string) { WELCOME_MODE: e_welcome_events, MKDIR_MODE: e_mkdir_events, INSERT_MODE: e_insert_events, + RENAME_MODE: e_rename_events, } for { data.ui.s.Clear() @@ -730,13 +731,14 @@ func i_ui(data_dir string) { } else if data.litems.head == nil { i_draw_zhosts_box(data.ui) } - if data.ui.mode == DELETE_MODE { + switch data.ui.mode { + case DELETE_MODE: i_draw_delete_msg(data.ui, data.litems.curr) - } else if data.ui.mode == ERROR_MODE { + case ERROR_MODE: i_draw_error_msg(data.ui, data.load_err) - } else if data.ui.mode == MKDIR_MODE { + case MKDIR_MODE: i_prompt_mkdir(data.ui, data.litems.curr) - } else if data.ui.mode == INSERT_MODE { + case INSERT_MODE: if data.insert == nil { i_prompt_insert(data.ui, data.litems.curr) } else { @@ -745,6 +747,8 @@ func i_ui(data_dir string) { i_draw_insert_err_msg(data.ui, data.insert_err) } } + case RENAME_MODE: + i_prompt_insert(data.ui, data.litems.curr) } data.ui.s.Show() e_events(&data, fp) |