diff options
author | Joe <rbo@gmx.us> | 2024-04-11 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-04-11 20:20:20 +0200 |
commit | 516d518cf4f2d72d743ac04ae0a60b8e09b88a70 (patch) | |
tree | c926a7cf88147521a7463a6fcd5512c43750de21 /src | |
parent | think we're fine (diff) | |
download | hardflip-516d518cf4f2d72d743ac04ae0a60b8e09b88a70.tar.gz hardflip-516d518cf4f2d72d743ac04ae0a60b8e09b88a70.tar.bz2 hardflip-516d518cf4f2d72d743ac04ae0a60b8e09b88a70.tar.xz hardflip-516d518cf4f2d72d743ac04ae0a60b8e09b88a70.tar.zst hardflip-516d518cf4f2d72d743ac04ae0a60b8e09b88a70.zip |
no way look at the date on events
Diffstat (limited to 'src')
-rw-r--r-- | src/c_defs.go | 1 | ||||
-rw-r--r-- | src/i_events.go | 2 | ||||
-rw-r--r-- | src/i_insert.go | 7 | ||||
-rw-r--r-- | src/i_ui.go | 2 |
4 files changed, 11 insertions, 1 deletions
diff --git a/src/c_defs.go b/src/c_defs.go index 12d1f18..d8933e6 100644 --- a/src/c_defs.go +++ b/src/c_defs.go @@ -126,6 +126,7 @@ const ( INS_RDP_DOMAIN INS_RDP_USER INS_RDP_PASS + INS_RDP_FILE // TODO: here INS_RDP_OK ) diff --git a/src/i_events.go b/src/i_events.go index 3b3ade5..ca1e017 100644 --- a/src/i_events.go +++ b/src/i_events.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_events.go - * Tue Apr 09 16:00:44 2024 + * Thu Apr 11 16:00:44 2024 * Joe * * events in the code diff --git a/src/i_insert.go b/src/i_insert.go index f87510d..3d30dd7 100644 --- a/src/i_insert.go +++ b/src/i_insert.go @@ -287,6 +287,13 @@ func i_draw_insert_rdp(ui HardUI, line int, win Quad, in *HostNode) int { i_draw_text_box(ui, win.T + line, win, "Pass", in.Pass, INS_RDP_PASS, ui.insert_sel, false) if line += 2; win.T + line >= win.B { return line } + text = "---- RDP File ----" + i_draw_text(ui.s, ui.dim[W] / 2 - len(text) / 2, win.T + line, win.R - 1, + win.T + line, ui.style[DEF_STYLE], text) + if line += 2; win.T + line >= win.B { return line } + i_draw_text_box(ui, win.T + line, win, "Pass", in.RDPFile, + INS_RDP_FILE, ui.insert_sel, false) + if line += 2; win.T + line >= win.B { return line } i_draw_ok_butt(ui, win.T + line, INS_RDP_OK, ui.insert_sel) return line } diff --git a/src/i_ui.go b/src/i_ui.go index cbe2f58..9c9c229 100644 --- a/src/i_ui.go +++ b/src/i_ui.go @@ -705,6 +705,8 @@ func i_ui(data_dir string) { false, home_dir) case INS_RDP_DOMAIN: i_prompt_generic(data.ui, "Domain: ", false, "") + case INS_RDP_FILE: + i_prompt_generic(data.ui, "RDP file: ", false, home_dir) } } else if data.insert_err != nil { i_draw_insert_err_msg(data.ui, data.insert_err) |