Skip to content

Commit

Permalink
Merge pull request #17 from Odotocodot/dev
Browse files Browse the repository at this point in the history
Version 2.0.1
  • Loading branch information
Odotocodot committed Oct 9, 2023
2 parents 273e49f + 6f9b3bb commit df5d6cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
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

0 comments on commit df5d6cf

Please sign in to comment.