aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-12 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-12 20:20:20 +0200
commitbca4186e5550006f99ba38017840e660aa4016b1 (patch)
tree96c982168cabae474aef68e7b5d1aa62491abf7b /src/i_events.go
parentcool (diff)
downloadhardflip-bca4186e5550006f99ba38017840e660aa4016b1.tar.gz
hardflip-bca4186e5550006f99ba38017840e660aa4016b1.tar.bz2
hardflip-bca4186e5550006f99ba38017840e660aa4016b1.tar.xz
hardflip-bca4186e5550006f99ba38017840e660aa4016b1.tar.zst
hardflip-bca4186e5550006f99ba38017840e660aa4016b1.zip
commit
Diffstat (limited to 'src/i_events.go')
-rw-r--r--src/i_events.go7
1 files changed, 6 insertions, 1 deletions
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 = ""