diff --git a/plugins/topbar/src/main.rs b/plugins/topbar/src/main.rs index f70b9d09..1a003aea 100644 --- a/plugins/topbar/src/main.rs +++ b/plugins/topbar/src/main.rs @@ -868,7 +868,13 @@ unsafe fn remember_taskbar_state() -> usize { } unsafe fn show_taskbar(state: usize) { - set_state(tray()[0], state); + let tb = tray()[0]; + if tb.is_null() { + // No explorer taskbar (rs-shell): start explorer to bring back the native taskbar (#302). + let _ = winrust_common::proc::start_shell_explorer(); + return; + } + set_state(tb, state); for t in tray().into_iter().filter(|t| !t.is_null()) { ShowWindow(t, SW_SHOWNA); }