4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -635,6 +635,13 @@ public bool ShortcutItemArgumentsVisibility
635
635
get => shortcutItemArgumentsVisibility ;
636
636
set => SetProperty ( ref shortcutItemArgumentsVisibility , value ) ;
637
637
}
638
+
639
+ private bool shortcutItemWindowArgsVisibility = false ;
640
+ public bool ShortcutItemWindowArgsVisibility
641
+ {
642
+ get => shortcutItemWindowArgsVisibility ;
643
+ set => SetProperty ( ref shortcutItemWindowArgsVisibility , value ) ;
644
+ }
638
645
639
646
private RelayCommand shortcutItemOpenLinkCommand ;
640
647
public RelayCommand ShortcutItemOpenLinkCommand
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ public override void GetBaseProperties()
67
67
ViewModel . ShortcutItemArguments = shortcutItem . Arguments ;
68
68
ViewModel . ShowWindowCommand = shortcutItem . ShowWindowCommand ;
69
69
ViewModel . ShortcutItemArgumentsVisibility = Item . IsLinkItem || shortcutItem . IsSymLink ? false : true ;
70
+ ViewModel . ShortcutItemWindowArgsVisibility = Item . IsLinkItem || shortcutItem . IsSymLink ? false : true ;
70
71
71
72
if ( isApplication )
72
73
ViewModel . RunAsAdmin = shortcutItem . RunAsAdmin ;
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ public override void GetBaseProperties()
59
59
ViewModel . ShortcutItemWorkingDirVisibility = false ;
60
60
ViewModel . ShortcutItemArguments = shortcutItem . Arguments ;
61
61
ViewModel . ShortcutItemArgumentsVisibility = false ;
62
+ ViewModel . ShortcutItemWindowArgsVisibility = false ;
62
63
ViewModel . ShortcutItemOpenLinkCommand = new RelayCommand ( async ( ) =>
63
64
{
64
65
await MainWindow . Instance . DispatcherQueue . EnqueueOrInvokeAsync (
Original file line number Diff line number Diff line change 137
137
Text=" {x:Bind ViewModel.ShortcutItemWorkingDirEditedValue, Mode=TwoWay}" />
138
138
</Grid >
139
139
140
- <settingsuc : SettingsBlockControl Title =" {helpers:ResourceString Name=StartWindow}" HorizontalAlignment =" Stretch" >
140
+ <settingsuc : SettingsBlockControl
141
+ x:Name=" WindowArgsSetting"
142
+ Title=" {helpers:ResourceString Name=StartWindow}"
143
+ HorizontalAlignment=" Stretch"
144
+ x:Load=" {x:Bind ViewModel.ShortcutItemWindowArgsVisibility, Mode=OneWay}" >
141
145
<ComboBox ItemsSource =" {x:Bind ViewModel.ShowWindowCommandTypes.Values, Mode=OneWay}" SelectedItem =" {x:Bind ViewModel.SelectedShowWindowCommand, Mode=TwoWay}" />
142
146
</settingsuc : SettingsBlockControl >
143
147
0 commit comments