Skip to content

Commit c370fa8

Browse files
author
Yair Aichenbaum
committed
Potential fix for LayoutMode icon
1 parent 83faa55 commit c370fa8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Files/UserControls/StatusBarControl.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
Height="30"
4343
Margin="2,0,2,0"
4444
Background="Transparent"
45-
Command="{x:Bind local1:App.AppSettings.ToggleLayoutMode}"
46-
Content="{x:Bind local1:App.AppSettings.ToggleLayoutModeIcon, Mode=OneWay}"
45+
Command="{x:Bind AppSettings.ToggleLayoutMode}"
46+
Content="{x:Bind AppSettings.ToggleLayoutModeIcon, Mode=OneWay}"
4747
CornerRadius="2"
4848
FontFamily="Segoe MDL2 Assets"
4949
FontSize="16" />

Files/UserControls/StatusBarControl.xaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
using Files.View_Models;
2+
using System;
23
using System.Collections.Generic;
34
using System.IO;
45
using System.Linq;
@@ -19,6 +20,7 @@ namespace Files.UserControls
1920
{
2021
public sealed partial class StatusBarControl : UserControl
2122
{
23+
public SettingsViewModel AppSettings => App.AppSettings;
2224
public StatusBarControl()
2325
{
2426
this.InitializeComponent();

0 commit comments

Comments
 (0)