On mock backend, don't hide when toplevel is opened

Toplevels are only added on this backend when the workspaces view is
shown.
This commit is contained in:
Ian Douglas Scott 2024-12-16 17:55:14 -08:00
parent 81ea2f20d4
commit e0c0f27f67

View file

@ -436,6 +436,7 @@ impl Application for App {
img: None,
});
// Close workspaces view if a window spawns while open
#[cfg(not(feature = "mock-backend"))]
if self.visible {
return self.hide();
}