Skip to content

Commit 8dee768

Browse files
committed
CQ: Revert
1 parent 460af78 commit 8dee768

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,7 @@ private void UserSettingsService_OnSettingChangedEvent(object? sender, SettingCh
126126

127127
private void HorizontalMultitaskingControl_Loaded(object sender, RoutedEventArgs e)
128128
{
129-
TabControl.SizeChanged += TabControlArea_SizeChanged;
130-
TabControl.DragArea.SizeChanged += TabControlArea_SizeChanged;
131-
}
132-
133-
private void TabControlArea_SizeChanged(object sender, SizeChangedEventArgs e)
134-
{
135-
MainWindow.Instance.RaiseSetTitleBarDragRegion(TabControl.SetTitleBarDragRegion);
129+
TabControl.DragArea.SizeChanged += (_, _) => MainWindow.Instance.RaiseSetTitleBarDragRegion(TabControl.SetTitleBarDragRegion);
136130
if (ViewModel.MultitaskingControl is not TabBar)
137131
{
138132
ViewModel.MultitaskingControl = TabControl;

0 commit comments

Comments
 (0)