From 4382591be3fb1bfcded08f990e74b786697bd03d Mon Sep 17 00:00:00 2001 From: gxalpha Date: Fri, 28 May 2021 20:23:53 +0200 Subject: [PATCH] UI: Remove "Fullscreen Interface" menu on macOS Removes the "View" -> "Fullscreen Interface" menu entry on macOS, since macOS automatically adds an entry doing the same thing by itself. --- UI/window-basic-main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 4d98ba950..cfc4a427d 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -2059,6 +2059,12 @@ void OBSBasic::OBSInit() #endif #endif +#ifdef __APPLE__ + /* Remove OBS' Fullscreen Interface menu in favor of the one macOS adds by default */ + delete ui->actionFullscreenInterface; + ui->actionFullscreenInterface = nullptr; +#endif + #if defined(_WIN32) || defined(__APPLE__) if (App()->IsUpdaterDisabled()) ui->actionCheckForUpdates->setEnabled(false);