Skip to content

Commit 39171cc

Browse files
committed
bug: fix clipboard page enter
1 parent 73d9785 commit 39171cc

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/app/tile/update.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,16 @@ pub fn handle_update(tile: &mut Tile, message: Message) -> Task<Message> {
215215
}
216216

217217
Message::OpenFocused => {
218-
// TODO: update ranking here
219-
match tile.results.get(tile.focus_id as usize) {
218+
info!("Open Focussed called");
219+
let results = if tile.page == Page::ClipboardHistory {
220+
tile.clipboard_content
221+
.iter()
222+
.map(|x| x.to_app().to_owned())
223+
.collect()
224+
} else {
225+
tile.results.clone()
226+
};
227+
match results.get(tile.focus_id as usize) {
220228
Some(App {
221229
search_name: name,
222230
open_command: AppCommand::Function(func),

0 commit comments

Comments
 (0)