-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added Pugin Setup - Added License agreement - Plugin Manager is now initialized on startup (but plugins are still run after SM has started) - Plugin enabled/Disabled is temporarily hidden - Remove Hint Pattern from the option UI - Added SMA update notifications - Improved Documentation - Several other fixes & additions
- Loading branch information
Showing
68 changed files
with
3,563 additions
and
904 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule MSBuild.Tools
updated
3 files
+1 −1 | MSBuild.Tools.nuspec | |
+0 −1 | MSBuild.Tools.props | |
+1 −1 | MSBuild.Tools.targets |
Submodule PluginManager
updated
7 files
Submodule Squirrel.Windows
updated
4 files
+1 −1 | src/Squirrel.nuspec | |
+59 −0 | src/Update/Natives.cs | |
+912 −727 | src/Update/Program.cs | |
+3 −0 | src/WriteZipToSetup/WriteZipToSetup.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
src/AppHosts/SuperMemoAssistant/SMANotificationActivator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#region License & Metadata | ||
|
||
// The MIT License (MIT) | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a | ||
// copy of this software and associated documentation files (the "Software"), | ||
// to deal in the Software without restriction, including without limitation | ||
// the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
// and/or sell copies of the Software, and to permit persons to whom the | ||
// Software is furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
// DEALINGS IN THE SOFTWARE. | ||
// | ||
// | ||
// Modified On: 2020/03/11 18:37 | ||
// Modified By: Alexis | ||
|
||
#endregion | ||
|
||
|
||
|
||
|
||
using System.Runtime.InteropServices; | ||
using System.Windows; | ||
using Anotar.Serilog; | ||
using Microsoft.QueryStringDotNET; | ||
using SuperMemoAssistant.Sys.Windows; | ||
|
||
namespace SuperMemoAssistant | ||
{ | ||
/// <summary>Handles user actions from Windows Toast Desktop notifications</summary> | ||
[ClassInterface(ClassInterfaceType.None)] | ||
[ComSourceInterfaces(typeof(INotificationActivationCallback))] | ||
[Guid("85DE7F06-9588-4EE6-ABB0-F212B01647FE")] | ||
[ComVisible(true)] | ||
public class SMANotificationActivator : NotificationActivator | ||
{ | ||
#region Methods Impl | ||
|
||
/// <inheritdoc /> | ||
public override void OnActivated(string arguments, NotificationUserInput userInput, string appUserModelId) | ||
{ | ||
Application.Current.Dispatcher.Invoke(delegate | ||
{ | ||
if (arguments.Length == 0) | ||
return; | ||
|
||
QueryString args = QueryString.Parse(arguments); | ||
|
||
switch (args["action"]) | ||
{ | ||
default: | ||
LogTo.Debug($"Unknown notification action {args["action"]}"); | ||
break; | ||
} | ||
}); | ||
} | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.