Skip to content

Commit

Permalink
Multiple Monitor Support
Browse files Browse the repository at this point in the history
Adds support for multiple monitors
  • Loading branch information
SIX10 committed Nov 5, 2021
1 parent 7c7b1a7 commit 17309fd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions RetroBar/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using ManagedShell.Common.Helpers;
using ManagedShell.Interop;
using Application = System.Windows.Application;
using System.Collections.Generic;

namespace RetroBar
{
Expand Down Expand Up @@ -46,8 +47,13 @@ public void ReopenTaskbar()

private void openTaskbar()
{
_taskbar = new Taskbar(_shellManager, _startMenuMonitor, _updater, AppBarScreen.FromPrimaryScreen(), (AppBarEdge)Settings.Instance.Edge);
_taskbar.Show();
foreach (var screen in AppBarScreen.FromAllScreens())
{
_taskbar = new Taskbar(_shellManager, _startMenuMonitor, _updater, screen, (AppBarEdge)Settings.Instance.Edge);
_taskbar.Show();
}


}

private void App_OnStartup(object sender, StartupEventArgs e)
Expand Down

0 comments on commit 17309fd

Please sign in to comment.