File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -254,21 +254,25 @@ public MainPageViewModel()
254254 OnPropertyChanged ( nameof ( ShowStatusBar ) ) ;
255255 break ;
256256 }
257- if ( e . PropertyName == nameof ( ActiveTerminal ) )
258- {
259- if ( ActiveTerminal is TerminalView termView )
260- {
261- GetTerminalFolder = termView . GetTerminalFolder ;
262- SetTerminalFolder = termView . SetTerminalFolder ;
263- }
264- else
265- {
266- GetTerminalFolder = null ;
267- SetTerminalFolder = null ;
268- }
269- }
270257 } ;
271258
259+ this . PropertyChanged += ( s , e ) =>
260+ {
261+ if ( e . PropertyName == nameof ( ActiveTerminal ) )
262+ {
263+ if ( ActiveTerminal is TerminalView termView )
264+ {
265+ GetTerminalFolder = termView . GetTerminalFolder ;
266+ SetTerminalFolder = termView . SetTerminalFolder ;
267+ }
268+ else
269+ {
270+ GetTerminalFolder = null ;
271+ SetTerminalFolder = null ;
272+ }
273+ }
274+ } ;
275+
272276 GeneralSettingsService . PropertyChanged += ( s , e ) =>
273277 {
274278 switch ( e . PropertyName )
You can’t perform that action at this time.
0 commit comments