Skip to content

Commit

Permalink
Strings: Update strings
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed Jan 10, 2024
1 parent 2022300 commit 534da91
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/Files.App/Services/Settings/FoldersSettingsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public bool OpenFoldersInNewTab
set => Set(value);
}

public bool ScrollToParentFolderWhenNavigatingUp
public bool ScrollToPreviousFolderWhenNavigatingUp
{
get => Get(true);
set => Set(value);
Expand Down Expand Up @@ -427,7 +427,7 @@ protected override void RaiseOnSettingChangedEvent(object sender, SettingChanged
case nameof(OpenItemsWithOneClick):
case nameof(ColumnLayoutOpenFoldersWithOneClick):
case nameof(OpenFoldersInNewTab):
case nameof(ScrollToParentFolderWhenNavigatingUp):
case nameof(ScrollToPreviousFolderWhenNavigatingUp):
case nameof(CalculateFolderSizes):
case nameof(ShowFileExtensions):
case nameof(ShowThumbnails):
Expand Down
4 changes: 2 additions & 2 deletions src/Files.App/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -3683,7 +3683,7 @@
<data name="FaildToShareItems" xml:space="preserve">
<value>Failed to share items</value>
</data>
<data name="ScrollToParentFolderWhenNavigatingUp" xml:space="preserve">
<value>Scroll to parent folder when navigating up</value>
<data name="ScrollToPreviousFolderWhenNavigatingUp" xml:space="preserve">
<value>Scroll to previous folder when navigating up</value>
</data>
</root>
8 changes: 4 additions & 4 deletions src/Files.App/ViewModels/Settings/FoldersViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,14 @@ public bool CalculateFolderSizes
}
}

public bool ScrollToParentFolderWhenNavigatingUp
public bool ScrollToPreviousFolderWhenNavigatingUp
{
get => UserSettingsService.FoldersSettingsService.ScrollToParentFolderWhenNavigatingUp;
get => UserSettingsService.FoldersSettingsService.ScrollToPreviousFolderWhenNavigatingUp;
set
{
if (value != UserSettingsService.FoldersSettingsService.ScrollToParentFolderWhenNavigatingUp)
if (value != UserSettingsService.FoldersSettingsService.ScrollToPreviousFolderWhenNavigatingUp)
{
UserSettingsService.FoldersSettingsService.ScrollToParentFolderWhenNavigatingUp = value;
UserSettingsService.FoldersSettingsService.ScrollToPreviousFolderWhenNavigatingUp = value;

OnPropertyChanged();
}
Expand Down
6 changes: 3 additions & 3 deletions src/Files.App/Views/Settings/FoldersPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,14 @@
</local:SettingsBlockControl>

<!-- Scroll to parent folder when navigating up -->
<local:SettingsBlockControl Title="{helpers:ResourceString Name=ScrollToParentFolderWhenNavigatingUp}" HorizontalAlignment="Stretch">
<local:SettingsBlockControl Title="{helpers:ResourceString Name=ScrollToPreviousFolderWhenNavigatingUp}" HorizontalAlignment="Stretch">
<local:SettingsBlockControl.Icon>
<FontIcon Glyph="&#xECE7;" />
</local:SettingsBlockControl.Icon>

<ToggleSwitch
AutomationProperties.Name="{helpers:ResourceString Name=ScrollToParentFolderWhenNavigatingUp}"
IsOn="{x:Bind ViewModel.ScrollToParentFolderWhenNavigatingUp, Mode=TwoWay}"
AutomationProperties.Name="{helpers:ResourceString Name=ScrollToPreviousFolderWhenNavigatingUp}"
IsOn="{x:Bind ViewModel.ScrollToPreviousFolderWhenNavigatingUp, Mode=TwoWay}"
Style="{StaticResource RightAlignedToggleSwitchStyle}" />
</local:SettingsBlockControl>

Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Views/Shells/BaseShellPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ protected void FilesystemViewModel_ItemLoadStatusChanged(object sender, ItemLoad

if (itemToSelect is not null && ContentPage is not null)
{
if (userSettingsService.FoldersSettingsService.ScrollToParentFolderWhenNavigatingUp)
if (userSettingsService.FoldersSettingsService.ScrollToPreviousFolderWhenNavigatingUp)
{
ContentPage.ItemManipulationModel.SetSelectedItem(itemToSelect);
ContentPage.ItemManipulationModel.ScrollIntoView(itemToSelect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public interface IFoldersSettingsService : IBaseSettingsService, INotifyProperty
/// <summary>
/// Gets or sets a value indicating whether or not to scroll to the parent folder when navigating up.
/// </summary>
bool ScrollToParentFolderWhenNavigatingUp { get; set; }
bool ScrollToPreviousFolderWhenNavigatingUp { get; set; }

/// <summary>
/// Gets or sets a value indicating the default sorting option.
Expand Down

0 comments on commit 534da91

Please sign in to comment.