Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions RetroBar/Utilities/ExplorerMonitor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ManagedShell;
using ManagedShell.Common.Helpers;
using ManagedShell.Common.Logging;
using ManagedShell.Interop;
using System;
Expand Down Expand Up @@ -43,6 +44,13 @@ protected override void WndProc(ref Message m)
Dispatcher.CurrentDispatcher.BeginInvoke(() => {
try
{
if (EnvironmentHelper.IsAppRunningAsShell)
{
// Re-evaluate shell status: some apps may delay the Shell process startup.
EnvironmentHelper.IsAppRunningAsShell = NativeMethods.GetShellWindow() == IntPtr.Zero;
// Trigger the hide taskbar logic again in case shell status has changed
_shellManager.ExplorerHelper.HideExplorerTaskbar = true;
}
// Reopen taskbars if explorer.exe is restarted.
_windowManagerRef.ReopenTaskbars();
// Re-initialize the tasks service to prevent leftover File Explorer windows.
Expand Down