Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions Flow.Launcher.Plugin.OneNote/ResultCreator.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Odotocodot.OneNote.Linq;

namespace Flow.Launcher.Plugin.OneNote
Expand Down Expand Up @@ -109,17 +110,20 @@ public Result CreateOneNoteItemResult(IOneNoteItem item, bool actionIsAutoComple
Score = score,
IcoPath = Icons.GetIcon(item),
ContextData = item,
Action = c =>
AsyncAction = async c =>
{
if (actionIsAutoComplete)
{
context.API.ChangeQuery(autoCompleteText);
return false;
}
OneNoteApplication.SyncItem(item);
OneNoteApplication.OpenInOneNote(item);
await Task.Run(() =>
{
OneNoteApplication.SyncItem(item);
OneNoteApplication.OpenInOneNote(item);
});
return true;
},
}
};
}
#endregion
Expand Down
2 changes: 1 addition & 1 deletion Flow.Launcher.Plugin.OneNote/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Name": "OneNote",
"Description": "Search and create your OneNote notes",
"Author": "Odotocodot",
"Version": "2.0.0",
"Version": "2.0.1",
"Language": "csharp",
"Website": "https://github.com/Odotocodot/Flow.Launcher.Plugin.OneNote",
"IcoPath": "Images/logo.png",
Expand Down