Skip to content

Commit 8244e8a

Browse files
authored
Fix open in new window (#1167)
1 parent a02295a commit 8244e8a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Files/App.xaml.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)
250250
rootFrame.Navigate(typeof(InstanceTabsView), e.Arguments, new SuppressNavigationTransitionInfo());
251251
}
252252

253-
ThemeHelper.Initialize();
254-
255253
// Ensure the current window is active
256254
Window.Current.Activate();
257255
Window.Current.CoreWindow.PointerPressed += CoreWindow_PointerPressed;
@@ -284,7 +282,6 @@ protected override async void OnActivated(IActivatedEventArgs args)
284282
Window.Current.Content = rootFrame;
285283
}
286284

287-
ThemeHelper.Initialize();
288285
var currentView = SystemNavigationManager.GetForCurrentView();
289286
switch (args.Kind)
290287
{
@@ -300,6 +297,7 @@ protected override async void OnActivated(IActivatedEventArgs args)
300297
var trimmedPath = eventArgs.Uri.OriginalString.Split('=')[1];
301298
rootFrame.Navigate(typeof(InstanceTabsView), @trimmedPath, new SuppressNavigationTransitionInfo());
302299
}
300+
303301
// Ensure the current window is active.
304302
Window.Current.Activate();
305303
Window.Current.CoreWindow.PointerPressed += CoreWindow_PointerPressed;

Files/Views/InstanceTabsView.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ public InstanceTabsView()
4747

4848
Window.Current.SizeChanged += Current_SizeChanged;
4949
Current_SizeChanged(null, null);
50+
51+
Helpers.ThemeHelper.Initialize();
5052
}
5153

5254
public static TabWindowProperties WindowProperties { get; set; } = new TabWindowProperties();

0 commit comments

Comments
 (0)