Przeglądaj źródła

Revert "UI: Remove macOS-Default Full Screen Menu Item"

This reverts commit cf445be44c6707e1e5cef0b5be8afeb03f74bb72.

Did not mean to merge this. #4768
jp9000 4 lat temu
rodzic
commit
7fffca945e
3 zmienionych plików z 0 dodań i 12 usunięć
  1. 0 4
      UI/obs-app.cpp
  2. 0 7
      UI/platform-osx.mm
  3. 0 1
      UI/platform.hpp

+ 0 - 4
UI/obs-app.cpp

@@ -2674,10 +2674,6 @@ int main(int argc, char *argv[])
 	}
 #endif
 
-#ifdef __APPLE__
-	DisableFullScreenViewMenuItem();
-#endif
-
 #ifdef _WIN32
 	obs_init_win32_crash_handler();
 	SetErrorMode(SEM_FAILCRITICALERRORS);

+ 0 - 7
UI/platform-osx.mm

@@ -235,13 +235,6 @@ void EnableOSXDockIcon(bool enable)
 				NSApplicationActivationPolicyProhibited];
 }
 
-void DisableFullScreenViewMenuItem()
-{
-	[[NSUserDefaults standardUserDefaults]
-		setBool:NO
-		 forKey:@"NSFullScreenMenuItemEverywhere"];
-}
-
 /*
  * This custom NSApplication subclass makes the app compatible with CEF. Qt
  * also has an NSApplication subclass, but it doesn't conflict thanks to Qt

+ 0 - 1
UI/platform.hpp

@@ -69,7 +69,6 @@ void EnableOSXDockIcon(bool enable);
 void InstallNSApplicationSubclass();
 void disableColorSpaceConversion(QWidget *window);
 void CheckAppWithSameBundleID(bool &already_running);
-void DisableFullScreenViewMenuItem();
 #endif
 #ifdef __linux__
 void RunningInstanceCheck(bool &already_running);