Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
razenxc committed Jan 6, 2025
1 parent 01005bc commit 81cd6bf
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 49 deletions.
13 changes: 6 additions & 7 deletions SymlinkShorthand/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public partial class MainWindow : Window
{
public static string? argsTarget;
public MainWindow()

{
InitializeComponent();

Expand Down Expand Up @@ -41,7 +40,7 @@ private async void xamlPickTargetPath_Clicked(object sender, RoutedEventArgs arg
{
try
{
TopLevel topLevel = TopLevel.GetTopLevel(this);
TopLevel? topLevel = TopLevel.GetTopLevel(this);

if (xamlTargetIsFile.IsChecked.Value)
{
Expand Down Expand Up @@ -86,7 +85,7 @@ private async void xamlPickDestPath_Clicked(object sender, RoutedEventArgs args)
{
if (xamlTargetIsDir.IsChecked.Value || xamlTargetIsFile.IsChecked.Value)
{
TopLevel topLevel = TopLevel.GetTopLevel(this);
TopLevel? topLevel = TopLevel.GetTopLevel(this);

IReadOnlyList<IStorageFolder> files = await topLevel.StorageProvider.OpenFolderPickerAsync(new FolderPickerOpenOptions
{
Expand All @@ -101,7 +100,6 @@ private async void xamlPickDestPath_Clicked(object sender, RoutedEventArgs args)
{
StatusUpdate("You should select Symbolic Link type");
}

}
catch (Exception e)
{
Expand All @@ -117,7 +115,7 @@ private void xamlLinkTargets_Clicked(object sender, RoutedEventArgs args)
{
if (xamlTargetPath.Text != "" && xamlTargetDestName.Text != "")
{
if (!xamlTargetDestPath.Text.EndsWith('/') || !xamlTargetDestPath.Text.EndsWith('\\'))
if (!xamlTargetDestPath.Text.EndsWith('/') && !xamlTargetDestPath.Text.EndsWith('\\'))
{
xamlTargetDestPath.Text += '/';
}
Expand Down Expand Up @@ -148,8 +146,9 @@ private void xamlLinkTargets_Clicked(object sender, RoutedEventArgs args)
{
StatusUpdate("Symbolic link type required");
}

} catch (Exception e) {
}
catch (Exception e)
{
StatusUpdate(e.Message);
}
}
Expand Down
14 changes: 0 additions & 14 deletions SymlinkShorthand/Scipts/AddToShell.reg

This file was deleted.

7 changes: 0 additions & 7 deletions SymlinkShorthand/Scipts/RemoveFromShell.reg

This file was deleted.

42 changes: 21 additions & 21 deletions WindowsSetup/WindowsSetup.vdproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
}
"Entry"
{
"MsmKey" = "8:_41268F9C64BA47D1BC744A3FD15EB5C0"
"MsmKey" = "8:_4098747B795D42FA8FDD46677508F603"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_5678F6493F9840F9A6804EC6596C6CBB"
"MsmKey" = "8:_41268F9C64BA47D1BC744A3FD15EB5C0"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_A31A51BE04B546E185F760E1411CECB8"
"MsmKey" = "8:_5678F6493F9840F9A6804EC6596C6CBB"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
Expand Down Expand Up @@ -176,12 +176,12 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_41268F9C64BA47D1BC744A3FD15EB5C0"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_4098747B795D42FA8FDD46677508F603"
{
"SourcePath" = "8:C:\\Users\\Alexey\\Downloads\\Rectangle 2.jpg"
"TargetName" = "8:banner.jpg"
"SourcePath" = "8:..\\SymlinkShorthand\\bin\\publish\\Release\\net8.0\\windows64\\SymlinkShorthand.exe"
"TargetName" = "8:SymlinkShorthand.exe"
"Tag" = "8:"
"Folder" = "8:_E4973EB58D9C461A8542CF741180D25B"
"Folder" = "8:_1EA25D2F3DCD4B5680E42AEF8E631BD4"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
Expand All @@ -196,12 +196,12 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_5678F6493F9840F9A6804EC6596C6CBB"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_41268F9C64BA47D1BC744A3FD15EB5C0"
{
"SourcePath" = "8:..\\SymlinkShorthand\\bin\\publish\\Release\\net8.0\\windows64\\libHarfBuzzSharp.dll"
"TargetName" = "8:libHarfBuzzSharp.dll"
"SourcePath" = "8:C:\\Users\\Alexey\\Downloads\\Rectangle 2.jpg"
"TargetName" = "8:banner.jpg"
"Tag" = "8:"
"Folder" = "8:_1EA25D2F3DCD4B5680E42AEF8E631BD4"
"Folder" = "8:_E4973EB58D9C461A8542CF741180D25B"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
Expand All @@ -216,10 +216,10 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_A31A51BE04B546E185F760E1411CECB8"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_5678F6493F9840F9A6804EC6596C6CBB"
{
"SourcePath" = "8:..\\SymlinkShorthand\\bin\\publish\\Release\\net8.0\\windows64\\SymlinkShorthand.exe"
"TargetName" = "8:SymlinkShorthand.exe"
"SourcePath" = "8:..\\SymlinkShorthand\\bin\\publish\\Release\\net8.0\\windows64\\libHarfBuzzSharp.dll"
"TargetName" = "8:libHarfBuzzSharp.dll"
"Tag" = "8:"
"Folder" = "8:_1EA25D2F3DCD4B5680E42AEF8E631BD4"
"Condition" = "8:"
Expand Down Expand Up @@ -323,9 +323,9 @@
"Product"
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:SymlinkShorthand"
"ProductName" = "8:Symlink Shorthand"
"ProductCode" = "8:{EFB1FE9E-2236-45A9-BB07-4995BFB0A493}"
"PackageCode" = "8:{9B0A61D4-8C47-4B0D-AD16-CF467D40EBAF}"
"PackageCode" = "8:{B21323AD-87BB-4331-B060-0E8ECC3BFF48}"
"UpgradeCode" = "8:{C2727E92-AFEF-44BB-95AB-57D5DB0CA7AA}"
"AspNetVersion" = "8:2.0.50727.0"
"RestartWWWService" = "11:FALSE"
Expand All @@ -336,7 +336,7 @@
"Manufacturer" = "8: "
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
"Title" = "8:SymlinkShorthand"
"Title" = "8:Symlink Shorthand"
"Subject" = "8:"
"ARPCONTACT" = "8:Razenxc"
"Keywords" = "8:"
Expand Down Expand Up @@ -607,27 +607,27 @@
{
"{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_2871E33FFB324300990893B05C8D78AA"
{
"Name" = "8:SymlinkShorthand"
"Name" = "8:Symlink Shorthand"
"Arguments" = "8:"
"Description" = "8:"
"ShowCmd" = "3:1"
"IconIndex" = "3:0"
"Transitive" = "11:FALSE"
"Target" = "8:_A31A51BE04B546E185F760E1411CECB8"
"Target" = "8:_4098747B795D42FA8FDD46677508F603"
"Folder" = "8:_C13446D80D404F56B41AC583853A51E1"
"WorkingFolder" = "8:_1EA25D2F3DCD4B5680E42AEF8E631BD4"
"Icon" = "8:_367D9B3931F4493E951EC5584456322C"
"Feature" = "8:"
}
"{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_56822639191A423D87A425C13135E8BA"
{
"Name" = "8:SymlinkShorthand"
"Name" = "8:Symlink Shorthand"
"Arguments" = "8:"
"Description" = "8:"
"ShowCmd" = "3:1"
"IconIndex" = "3:0"
"Transitive" = "11:FALSE"
"Target" = "8:_A31A51BE04B546E185F760E1411CECB8"
"Target" = "8:_4098747B795D42FA8FDD46677508F603"
"Folder" = "8:_F6D45F8E8EB9461AAF0223012A0B52C6"
"WorkingFolder" = "8:_1EA25D2F3DCD4B5680E42AEF8E631BD4"
"Icon" = "8:_367D9B3931F4493E951EC5584456322C"
Expand Down

0 comments on commit 81cd6bf

Please sign in to comment.