File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ public override void GetBaseProperties()
59
59
ViewModel . ShortcutItemWorkingDirVisibility = Item . IsLinkItem ? Visibility . Collapsed : Visibility . Visible ;
60
60
ViewModel . ShortcutItemArguments = shortcutItem . Arguments ;
61
61
ViewModel . ShortcutItemArgumentsVisibility = Item . IsLinkItem ? Visibility . Collapsed : Visibility . Visible ;
62
+ ViewModel . IsSelectedItemShortcut = Item . FileExtension . Equals ( ".lnk" , StringComparison . OrdinalIgnoreCase ) ;
62
63
ViewModel . ShortcutItemOpenLinkCommand = new GalaSoft . MvvmLight . Command . RelayCommand ( async ( ) =>
63
64
{
64
65
if ( Item . IsLinkItem )
Original file line number Diff line number Diff line change 180
180
<Button
181
181
x : Name =" OpenLinkButton"
182
182
x : Uid =" PropertiesDialogOpenLinkButton"
183
+ x : Load =" {x:Bind ViewModel.IsSelectedItemShortcut, Mode=OneWay}"
183
184
MinWidth =" 100"
184
185
Command =" {x:Bind ViewModel.ShortcutItemOpenLinkCommand, Mode=OneWay}"
185
186
Content =" Open file location"
You can’t perform that action at this time.
0 commit comments