File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -250,21 +250,25 @@ public MainPageViewModel()
250250 OnPropertyChanged ( nameof ( ShowStatusBar ) ) ;
251251 break ;
252252 }
253- if ( e . PropertyName == nameof ( ActiveTerminal ) )
254- {
255- if ( ActiveTerminal is TerminalView termView )
256- {
257- GetTerminalFolder = termView . GetTerminalFolder ;
258- SetTerminalFolder = termView . SetTerminalFolder ;
259- }
260- else
261- {
262- GetTerminalFolder = null ;
263- SetTerminalFolder = null ;
264- }
265- }
266253 } ;
267254
255+ this . PropertyChanged += ( s , e ) =>
256+ {
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+ }
270+ } ;
271+
268272 GeneralSettingsService . PropertyChanged += ( s , e ) =>
269273 {
270274 switch ( e . PropertyName )
You can’t perform that action at this time.
0 commit comments