Skip to content

Commit

Permalink
fixed list double click for gtk picker
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed May 22, 2023
1 parent 2400005 commit 20f2991
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ares-device/src/picker/gtk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ impl PickPrompt for PickPromptGtk {
list.insert(&row, -1);
}
list.set_vexpand(true);
list.set_activate_on_single_click(false);
let index = ui_selected.clone();
list.connect_row_selected(move |_, selected| {
*index.lock().unwrap() = selected.map(|row| row.index()).unwrap_or(-1);
Expand Down

0 comments on commit 20f2991

Please sign in to comment.