mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-27 23:56:12 -04:00
UI: Remove support for toggling Aero
We no longer support Windows 7 and Aero (DWM composition) is permanently enabled for all newer versions, so this code is obsolete.
This commit is contained in:
@@ -1893,15 +1893,6 @@ void OBSBasic::OBSInit()
|
||||
Qt::QueuedConnection,
|
||||
Q_ARG(bool, previewEnabled));
|
||||
|
||||
#ifdef _WIN32
|
||||
uint32_t winVer = GetWindowsVersion();
|
||||
if (winVer > 0 && winVer < 0x602) {
|
||||
bool disableAero =
|
||||
config_get_bool(basicConfig, "Video", "DisableAero");
|
||||
SetAeroEnabled(!disableAero);
|
||||
}
|
||||
#endif
|
||||
|
||||
RefreshSceneCollections();
|
||||
RefreshProfiles();
|
||||
disableSaving--;
|
||||
@@ -2717,17 +2708,6 @@ OBSBasic::~OBSBasic()
|
||||
ui->lockDocks->isChecked());
|
||||
config_save_safe(App()->GlobalConfig(), "tmp", nullptr);
|
||||
|
||||
#ifdef _WIN32
|
||||
uint32_t winVer = GetWindowsVersion();
|
||||
if (winVer > 0 && winVer < 0x602) {
|
||||
bool disableAero =
|
||||
config_get_bool(basicConfig, "Video", "DisableAero");
|
||||
if (disableAero) {
|
||||
SetAeroEnabled(true);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef BROWSER_AVAILABLE
|
||||
DestroyPanelCookieManager();
|
||||
delete cef;
|
||||
|
||||
Reference in New Issue
Block a user