Skip to content

Commit c3fafb8

Browse files
Marco Gavelliyair100
authored andcommitted
Restore sync path functionality
1 parent e923d76 commit c3fafb8

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

src/Files.App/ViewModels/MainPageViewModel.cs

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

0 commit comments

Comments
 (0)