This commit is contained in:
Kirottu
2023-04-27 16:22:24 +03:00
2 changed files with 5 additions and 1 deletions

3
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1,3 @@
# These are supported funding model platforms
github: Kirottu

View File

@@ -230,12 +230,13 @@ fn get_matches(input: RString, data: &mut ()) -> RVec<Match> {
vec![Match { vec![Match {
title: "Test match".into(), title: "Test match".into(),
icon: ROption::RSome("help-about"), icon: ROption::RSome("help-about"),
use_pango: false,
description: ROption::RSome("Test match for the plugin API demo"), description: ROption::RSome("Test match for the plugin API demo"),
id: ROption::RNone, // The ID can be used for identifying the match later, is not required id: ROption::RNone, // The ID can be used for identifying the match later, is not required
}].into() }].into()
} }
fn handler(selection: Match, data: &mut ()) -> HandleResult { fn handler(selection: Match, input: RString, data: &mut ()) -> HandleResult {
// Handle the selected match and return how anyrun should proceed // Handle the selected match and return how anyrun should proceed
HandleResult::Close HandleResult::Close
} }