Skip to content

Commit

Permalink
添加创建桌面快捷方式功能[设置]
Browse files Browse the repository at this point in the history
  • Loading branch information
JamXi233 committed Aug 1, 2024
1 parent 74d605b commit 5a47376
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ZenlessTools/Depend/CreateShortcut.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,21 @@

using System;
using System.IO;
using static ZenlessTools.App;

namespace ZenlessTools.Depend
{
public class CreateShortcut
{
public static async void CreateDesktopShortcut()
{
string shortcutPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "ZenlessTools(¾øÇøÁ㹤¾ßÏä).url");
string shortcutPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "없혐쥐묏야芎.url");
using (StreamWriter writer = new StreamWriter(shortcutPath))
{
writer.WriteLine("[InternetShortcut]");
writer.WriteLine("URL=ZenlessTools:///");
}
NotificationManager.RaiseNotification("눼쉔戮충우쌥렘駕", "없혐쥐묏야芎戮충우쌥렘駕綠눼쉔。", Microsoft.UI.Xaml.Controls.InfoBarSeverity.Success, true, 2);
}
}
}
2 changes: 1 addition & 1 deletion ZenlessTools/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Identity
Name="JSG.ZenlessTools"
Publisher="CN=JSG-Software, O=JSG-LLC, C=CN"
Version="1.0.6.0" />
Version="1.0.7.0" />

<Properties>
<DisplayName>ZenlessTools(绝区零工具箱)</DisplayName>
Expand Down

0 comments on commit 5a47376

Please sign in to comment.