From bca4186e5550006f99ba38017840e660aa4016b1 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 12 Apr 2024 20:20:20 +0200 Subject: commit --- src/i_events.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/i_events.go') diff --git a/src/i_events.go b/src/i_events.go index de92428..35f7a4c 100644 --- a/src/i_events.go +++ b/src/i_events.go @@ -621,6 +621,7 @@ func i_events(data *HardData) { case INS_SSH_JUMP_PRIV: ui.buff = data.insert.Jump.Priv case INS_RDP_DOMAIN: ui.buff = data.insert.Domain case INS_RDP_FILE: ui.buff = data.insert.RDPFile + case INS_RDP_QUALITY: break case INS_SSH_OK, INS_RDP_OK: data.ui.insert_sel_ok = false @@ -672,7 +673,8 @@ func i_events(data *HardData) { INS_RDP_DOMAIN, INS_RDP_USER, INS_RDP_PASS, - INS_RDP_FILE: + INS_RDP_FILE, + INS_RDP_QUALITY: if event.Key() == tcell.KeyEnter { switch data.ui.insert_sel { case INS_SSH_HOST, @@ -711,6 +713,9 @@ func i_events(data *HardData) { data.insert.Domain = ui.buff case INS_RDP_FILE: data.insert.RDPFile = ui.buff + case INS_RDP_QUALITY: + tmp, _ := strconv.Atoi(ui.buff) + data.insert.Quality = uint8(tmp) } data.ui.insert_sel_ok = false ui.buff = "" -- cgit v1.2.3