Skip to content

Commit d1df7b9

Browse files
committed
Feature: Removed setting for displaying the home button
1 parent 157f7bf commit d1df7b9

File tree

8 files changed

+1
-54
lines changed

8 files changed

+1
-54
lines changed

src/Files.App/Data/Contracts/IAppearanceSettingsService.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@ public interface IAppearanceSettingsService : IBaseSettingsService, INotifyPrope
107107
/// </summary>
108108
bool ShowTabActions { get; set; }
109109

110-
/// <summary>
111-
/// Gets or sets a value whether the home button should be displayed.
112-
/// </summary>
113-
bool ShowHomeButton { get; set; }
114-
115110
/// <summary>
116111
/// Gets or sets a value whether the shelf pane toggle button should be displayed.
117112
/// </summary>

src/Files.App/Services/Settings/AppearanceSettingsService.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,6 @@ public bool ShowTabActions
145145
set => Set(value);
146146
}
147147

148-
/// <inheritdoc/>
149-
public bool ShowHomeButton
150-
{
151-
get => Get(false);
152-
set => Set(value);
153-
}
154-
155148
/// <inheritdoc/>
156149
public bool ShowShelfPaneToggleButton
157150
{

src/Files.App/Strings/en-US/Resources.resw

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4078,9 +4078,6 @@
40784078
<data name="NavigateHomeDescription" xml:space="preserve">
40794079
<value>Navigate to the home page</value>
40804080
</data>
4081-
<data name="ShowHomeButton" xml:space="preserve">
4082-
<value>Show home button in address bar</value>
4083-
</data>
40844081
<data name="Toolbars" xml:space="preserve">
40854082
<value>Toolbars</value>
40864083
</data>

src/Files.App/UserControls/NavigationToolbar.xaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -215,18 +215,6 @@
215215
ToolTipService.ToolTip="{x:Bind Commands.RefreshItems.LabelWithHotKey, Mode=OneWay}">
216216
<FontIcon FontSize="14" Glyph="{x:Bind Commands.RefreshItems.Glyph.BaseGlyph, Mode=OneTime}" />
217217
</Button>
218-
219-
<Button
220-
x:Name="HomeButton"
221-
x:Load="{x:Bind ViewModel.ShowHomeButton, Mode=OneWay}"
222-
AccessKey="H"
223-
AccessKeyInvoked="Button_AccessKeyInvoked"
224-
AutomationProperties.Name="{x:Bind Commands.NavigateHome.Label, Mode=OneWay}"
225-
Command="{x:Bind Commands.NavigateHome, Mode=OneWay}"
226-
Style="{StaticResource AddressToolbarButtonStyle}"
227-
ToolTipService.ToolTip="{x:Bind Commands.NavigateHome.LabelWithHotKey, Mode=OneWay}">
228-
<FontIcon FontSize="14" Glyph="{x:Bind Commands.NavigateHome.Glyph.BaseGlyph, Mode=OneTime}" />
229-
</Button>
230218
</StackPanel>
231219

232220
<!-- Legacy breadcrumb bar -->

src/Files.App/UserControls/NavigationToolbar.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private void ClickablePath_GettingFocus(UIElement sender, GettingFocusEventArgs
253253
return;
254254

255255
var previousControl = args.OldFocusedElement as FrameworkElement;
256-
if (previousControl?.Name == nameof(HomeButton) || previousControl?.Name == nameof(Refresh))
256+
if (previousControl?.Name == nameof(Refresh))
257257
ViewModel.IsEditModeEnabled = true;
258258
}
259259

src/Files.App/ViewModels/Settings/AppearanceViewModel.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -309,20 +309,6 @@ public bool ShowTabActions
309309
}
310310
}
311311

312-
public bool ShowHomeButton
313-
{
314-
get => UserSettingsService.AppearanceSettingsService.ShowHomeButton;
315-
set
316-
{
317-
if (value != UserSettingsService.AppearanceSettingsService.ShowHomeButton)
318-
{
319-
UserSettingsService.AppearanceSettingsService.ShowHomeButton = value;
320-
321-
OnPropertyChanged();
322-
}
323-
}
324-
}
325-
326312
public bool ShowShelfPaneToggleButton
327313
{
328314
get => UserSettingsService.AppearanceSettingsService.ShowShelfPaneToggleButton;

src/Files.App/ViewModels/UserControls/NavigationToolbarViewModel.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public sealed partial class NavigationToolbarViewModel : ObservableObject, IAddr
8484

8585
public bool SearchHasFocus { get; private set; }
8686

87-
public bool ShowHomeButton => AppearanceSettingsService.ShowHomeButton;
8887
public bool EnableOmnibar => GeneralSettingsService.EnableOmnibar;
8988
public bool ShowStatusCenterButton =>
9089
AppearanceSettingsService.StatusCenterVisibility == StatusCenterVisibility.Always ||
@@ -349,9 +348,6 @@ public NavigationToolbarViewModel()
349348
{
350349
switch (e.PropertyName)
351350
{
352-
case nameof(AppearanceSettingsService.ShowHomeButton):
353-
OnPropertyChanged(nameof(ShowHomeButton));
354-
break;
355351
case nameof(AppearanceSettingsService.StatusCenterVisibility):
356352
OnPropertyChanged(nameof(ShowStatusCenterButton));
357353
break;

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,6 @@
250250
</wctcontrols:SettingsExpander.HeaderIcon>
251251

252252
<wctcontrols:SettingsExpander.Items>
253-
<!-- Show home button -->
254-
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowHomeButton}">
255-
<ToggleSwitch
256-
AutomationProperties.AutomationControlType="Custom"
257-
AutomationProperties.Name="{helpers:ResourceString Name=ShowHomeButton}"
258-
IsOn="{x:Bind ViewModel.ShowHomeButton, Mode=TwoWay}" />
259-
</wctcontrols:SettingsCard>
260-
261253
<!-- Show shelf pane toggle button -->
262254
<wctcontrols:SettingsCard
263255
x:Name="ShowShelfPaneSetting"

0 commit comments

Comments
 (0)