mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 22:59:27 +00:00
xmrig: fix input
This commit is contained in:
parent
e95a85dbd0
commit
86c6b9791c
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ impl crate::disk::Xmrig {
|
||||||
ui.separator();
|
ui.separator();
|
||||||
let response = ui.add_sized([width, text_edit], TextEdit::hint_text(TextEdit::singleline(buffer), r#"Commands: [h]ashrate, [p]ause, [r]esume, re[s]ults, [c]onnection"#)).on_hover_text(XMRIG_INPUT);
|
let response = ui.add_sized([width, text_edit], TextEdit::hint_text(TextEdit::singleline(buffer), r#"Commands: [h]ashrate, [p]ause, [r]esume, re[s]ults, [c]onnection"#)).on_hover_text(XMRIG_INPUT);
|
||||||
// If the user pressed enter, dump buffer contents into the process STDIN
|
// If the user pressed enter, dump buffer contents into the process STDIN
|
||||||
if response.lost_focus() && ui.input().key_pressed(egui::Key::Enter) {
|
if response.lost_focus() && ui.input(|i| i.key_pressed(egui::Key::Enter)) {
|
||||||
response.request_focus(); // Get focus back
|
response.request_focus(); // Get focus back
|
||||||
let buffer = std::mem::take(buffer); // Take buffer
|
let buffer = std::mem::take(buffer); // Take buffer
|
||||||
let mut process = lock!(process); // Lock
|
let mut process = lock!(process); // Lock
|
||||||
|
|
Loading…
Reference in a new issue