Skip to content

Commit

Permalink
Fix: Fix problem when opening many tabs without changing DragArea size
Browse files Browse the repository at this point in the history
  • Loading branch information
XTorLukas committed Nov 30, 2024
1 parent 8dee768 commit 6baa2ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Files.App/Views/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ private void UserSettingsService_OnSettingChangedEvent(object? sender, SettingCh
private void HorizontalMultitaskingControl_Loaded(object sender, RoutedEventArgs e)
{
TabControl.DragArea.SizeChanged += (_, _) => MainWindow.Instance.RaiseSetTitleBarDragRegion(TabControl.SetTitleBarDragRegion);
TabControl.SizeChanged += (_, _) => MainWindow.Instance.RaiseSetTitleBarDragRegion(TabControl.SetTitleBarDragRegion);

if (ViewModel.MultitaskingControl is not TabBar)
{
ViewModel.MultitaskingControl = TabControl;
Expand Down

0 comments on commit 6baa2ed

Please sign in to comment.