Skip to content

Commit df5d6cf

Browse files
authored
Merge pull request #17 from Odotocodot/dev
Version 2.0.1
2 parents 273e49f + 6f9b3bb commit df5d6cf

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Flow.Launcher.Plugin.OneNote/ResultCreator.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.Collections.Generic;
22
using System.Linq;
3+
using System.Threading.Tasks;
34
using Odotocodot.OneNote.Linq;
45

56
namespace Flow.Launcher.Plugin.OneNote
@@ -109,17 +110,20 @@ public Result CreateOneNoteItemResult(IOneNoteItem item, bool actionIsAutoComple
109110
Score = score,
110111
IcoPath = Icons.GetIcon(item),
111112
ContextData = item,
112-
Action = c =>
113+
AsyncAction = async c =>
113114
{
114115
if (actionIsAutoComplete)
115116
{
116117
context.API.ChangeQuery(autoCompleteText);
117118
return false;
118119
}
119-
OneNoteApplication.SyncItem(item);
120-
OneNoteApplication.OpenInOneNote(item);
120+
await Task.Run(() =>
121+
{
122+
OneNoteApplication.SyncItem(item);
123+
OneNoteApplication.OpenInOneNote(item);
124+
});
121125
return true;
122-
},
126+
}
123127
};
124128
}
125129
#endregion

Flow.Launcher.Plugin.OneNote/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "OneNote",
55
"Description": "Search and create your OneNote notes",
66
"Author": "Odotocodot",
7-
"Version": "2.0.0",
7+
"Version": "2.0.1",
88
"Language": "csharp",
99
"Website": "https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote",
1010
"IcoPath": "Images/logo.png",

0 commit comments

Comments
 (0)