Browse Source

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.
gxalpha 4 years ago
parent
commit
4382591be3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      UI/window-basic-main.cpp

+ 6 - 0
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);