Skip to content

Commit

Permalink
🐛 Fix no results
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Mar 17, 2022
1 parent 566b86a commit 15118f6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
Binary file added assets/question.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 4 additions & 14 deletions bin/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,13 @@ Future<void> _performSearch(String query) async {
);
workflow.addItems(items.items);
} else {
final Uri url = Uri.https(
'www.google.com',
'/search',
{'q': 'gitmoji $query'},
);

workflow.addItem(
AlfredItem(
title: 'No matching answers found',
subtitle: 'Shall I try and search Google?',
arg: url.toString(),
text: AlfredItemText(
copy: url.toString(),
title: 'No matching Gitmojis found',
icon: AlfredItemIcon(
path: 'question.png',
),
quickLookUrl: url.toString(),
icon: AlfredItemIcon(path: 'google.png'),
valid: true,
valid: false,
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>1.0.0</string>
<string>1.0.1</string>
<key>webaddress</key>
<string>https://github.com/techouse</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1

0 comments on commit 15118f6

Please sign in to comment.