Skip to content

Commit 24795f9

Browse files
author
Marco Gavelli
committed
Restore functionalities
1 parent 1fdb427 commit 24795f9

File tree

5 files changed

+11
-17
lines changed

5 files changed

+11
-17
lines changed

src/Files.App/Files.App.csproj

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@
3838
<DefineConstants>$(DefineConstants);DISABLE_XAML_GENERATED_MAIN</DefineConstants>
3939
</PropertyGroup>
4040

41-
<ItemGroup>
42-
<Compile Remove="Terminal\**" />
43-
<Content Remove="Terminal\**" />
44-
<EmbeddedResource Remove="Terminal\**" />
45-
<None Remove="Terminal\**" />
46-
<Page Remove="Terminal\**" />
47-
<PRIResource Remove="Terminal\**" />
48-
</ItemGroup>
49-
5041
<ItemGroup>
5142
<Manifest Include="app.manifest" />
5243
<Content Update="Assets\Resources\**">
@@ -69,6 +60,10 @@
6960
<Content Include="7zArm64.dll">
7061
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7162
</Content>
63+
<Content Include="Utils\Terminal\UI\bundle.js" />
64+
<Content Include="Utils\Terminal\UI\index.html" />
65+
<Content Include="Utils\Terminal\UI\style.css" />
66+
<Content Include="Utils\Terminal\UI\xterm.css" />
7267
</ItemGroup>
7368

7469
<ItemGroup>

src/Files.App/UserControls/FilePreviews/HtmlPreview.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
HorizontalAlignment="Stretch"
2222
VerticalAlignment="Stretch"
2323
DefaultBackgroundColor="Transparent"
24-
Loaded="WebViewControl_LoadedAsync" />
24+
Loaded="WebViewControl_Loaded" />
2525

2626
</Border>
2727
</UserControl>

src/Files.App/UserControls/StatusBar.xaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<ColumnDefinition />
3232
<ColumnDefinition Width="Auto" />
3333
<ColumnDefinition Width="Auto" />
34+
<ColumnDefinition Width="Auto" />
3435
</Grid.ColumnDefinitions>
3536

3637
<!-- Folder and selection info -->
@@ -322,7 +323,7 @@
322323
x:Load="{x:Bind MainPageViewModel.IsTerminalViewOpen, Mode=OneWay}"
323324
Background="Transparent"
324325
BorderBrush="Transparent"
325-
Command="{x:Bind MainPageViewModel.TerminalSyncUpCommand}">
326+
Command="{x:Bind MainPageViewModel.TerminalSyncUpCommand, Mode=OneWay}">
326327
<Button.Content>
327328
<FontIcon FontSize="12" Glyph="&#xE110;" />
328329
</Button.Content>
@@ -336,7 +337,7 @@
336337
x:Load="{x:Bind MainPageViewModel.IsTerminalViewOpen, Mode=OneWay}"
337338
Background="Transparent"
338339
BorderBrush="Transparent"
339-
Command="{x:Bind MainPageViewModel.TerminalSyncDownCommand}">
340+
Command="{x:Bind MainPageViewModel.TerminalSyncDownCommand, Mode=OneWay}">
340341
<Button.Content>
341342
<FontIcon FontSize="12" Glyph="&#xE74B;" />
342343
</Button.Content>
@@ -350,7 +351,7 @@
350351
AutomationProperties.Name="Toggle terminal"
351352
Background="Transparent"
352353
BorderBrush="Transparent"
353-
Command="{x:Bind MainPageViewModel.TerminalToggleCommand}">
354+
Command="{x:Bind MainPageViewModel.TerminalToggleCommand, Mode=OneWay}">
354355
<SplitButton.Content>
355356
<StackPanel Orientation="Horizontal" Spacing="8">
356357
<FontIcon FontSize="12" Glyph="&#xE756;" />

src/Files.App/Views/MainPage.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ private void UpdateStatusBarProperties()
189189
{
190190
StatusBar.StatusBarViewModel = SidebarAdaptiveViewModel.PaneHolder?.ActivePaneOrColumn.SlimContentPage?.StatusBarViewModel;
191191
StatusBar.SelectedItemsPropertiesViewModel = SidebarAdaptiveViewModel.PaneHolder?.ActivePaneOrColumn.SlimContentPage?.SelectedItemsPropertiesViewModel;
192+
StatusBar.MainPageViewModel = ViewModel;
192193
}
193194
}
194195

src/Files.App/Views/Settings/AdvancedPage.xaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,7 @@
174174
<wctcontrols:SettingsCard.HeaderIcon>
175175
<FontIcon Glyph="&#xE756;" />
176176
</wctcontrols:SettingsCard.HeaderIcon>
177-
<ToggleSwitch
178-
AutomationProperties.Name="{helpers:ResourceString Name=SettingsTerminalIntegration}"
179-
IsOn="{x:Bind ViewModel.IsTerminalIntegrationEnabled, Mode=TwoWay}"
180-
Style="{StaticResource RightAlignedToggleSwitchStyle}" />
177+
<ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=SettingsTerminalIntegration}" IsOn="{x:Bind ViewModel.IsTerminalIntegrationEnabled, Mode=TwoWay}" />
181178
</wctcontrols:SettingsCard>
182179
</StackPanel>
183180
</Grid>

0 commit comments

Comments
 (0)