aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_ui.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-15 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-15 20:20:20 +0200
commitb33dca29fdf3ccefd16412589feefd66b735a534 (patch)
tree35f58b8e433e77ec1ab2dcf7381f80c8f9dcfbf9 /src/i_ui.go
parentprogress (diff)
downloadhardflip-b33dca29fdf3ccefd16412589feefd66b735a534.tar.gz
hardflip-b33dca29fdf3ccefd16412589feefd66b735a534.tar.bz2
hardflip-b33dca29fdf3ccefd16412589feefd66b735a534.tar.xz
hardflip-b33dca29fdf3ccefd16412589feefd66b735a534.tar.zst
hardflip-b33dca29fdf3ccefd16412589feefd66b735a534.zip
up
Diffstat (limited to 'src/i_ui.go')
-rw-r--r--src/i_ui.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/i_ui.go b/src/i_ui.go
index d4278e2..d6b8f46 100644
--- a/src/i_ui.go
+++ b/src/i_ui.go
@@ -450,6 +450,15 @@ func i_prompt_insert(ui HardUI, curr *ItemsNode) {
ui.s.ShowCursor(len(prompt) + 1 + len(path) + len(ui.buff), ui.dim[H] - 1)
}
+func i_draw_remove_share(ui HardUI) {
+ text := "Really remove this share?"
+
+ i_draw_msg(ui.s, 1, ui.style[BOX_STYLE], ui.dim, " Remove share ")
+ left, right := i_left_right(len(text), &ui)
+ line := ui.dim[H] - 2 - 1
+ i_draw_text(ui.s, left, line, right, line, ui.style[DEF_STYLE], text)
+}
+
func i_draw_zhosts_box(ui HardUI) {
i_draw_msg(ui.s, 1, ui.style[BOX_STYLE], ui.dim, " No hosts ")
text := "Hosts list empty. Add hosts/folders by pressing (a/m)"
@@ -746,6 +755,12 @@ func i_ui(data_dir string) {
i_prompt_dir(data.ui, "Local directory: ", home_dir)
}
}
+ if len(data.insert.Drive) > 0 &&
+ data.ui.insert_sel >= INS_RDP_DRIVE &&
+ data.ui.insert_sel < INS_RDP_DRIVE +
+ len(data.insert.Drive) {
+ i_draw_remove_share(data.ui)
+ }
} else if data.insert_err != nil {
i_draw_insert_err_msg(data.ui, data.insert_err)
}