protected override void AfterOpening() { base.AfterOpening(); Focus(); if (m_src.Window) { m_dst.Window.titleContent = m_src.Window.titleContent; // Copy the title of the window to the placeholder } SetToolbarStatus(FullscreenPreferences.ToolbarVisible); // Hide/show the toolbar // macOS doesn't like fast things, so we'll wait a bit and do it again After.Milliseconds(100d, () => SetToolbarStatus(FullscreenPreferences.ToolbarVisible)); var notificationWindow = ActualViewPyramid.Window; var menuItemPath = string.Empty; if (notificationWindow.IsOfType(Types.GameView)) { menuItemPath = Shortcut.GAME_VIEW_PATH; } else if (notificationWindow is SceneView) { menuItemPath = Shortcut.SCENE_VIEW_PATH; } else { menuItemPath = Shortcut.CURRENT_VIEW_PATH; } FullscreenUtility.ShowFullscreenExitNotification(notificationWindow, menuItemPath); }
protected override void AfterOpening() { base.AfterOpening(); Focus(); if (m_src.Window) { m_dst.Window.titleContent = m_src.Window.titleContent; // Copy the title of the window to the placeholder } SetToolbarStatus(FullscreenPreferences.ToolbarVisible); // Hide/show the toolbar // macOS doesn't like fast things, so we'll wait a bit and do it again // Looks like Linux does not like it too After.Milliseconds(100d, () => SetToolbarStatus(FullscreenPreferences.ToolbarVisible)); var notificationWindow = ActualViewPyramid.Window; After.Milliseconds(50d, () => { if (!notificationWindow) // Might have been closed { return; } var menuItemPath = string.Empty; if (notificationWindow.IsOfType(Types.GameView)) { menuItemPath = Fullscreen .GetAllFullscreen() .Where(fs => fs.ActualViewPyramid.Window && fs.ActualViewPyramid.Window.IsOfType(Types.GameView)) .Count() > 1 ? Shortcut.MOSAIC_PATH : Shortcut.GAME_VIEW_PATH; } else if (notificationWindow is SceneView) { menuItemPath = Shortcut.SCENE_VIEW_PATH; } else { menuItemPath = Shortcut.CURRENT_VIEW_PATH; } FullscreenUtility.ShowFullscreenExitNotification(notificationWindow, menuItemPath); }); }