Skip to content

Commit ccabd5b

Browse files
author
Marco Gavelli
committed
Restore sync path functionality
1 parent 24795f9 commit ccabd5b

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

src/Files.App/ViewModels/MainPageViewModel.cs

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)