mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-21 12:49:40 +08:00
UI: Add Whats New for macOS/Linux
- Requires MbedTLS on Linux - Enabled by default on macOS and Flatpak - Enabled on linux via ENABLE_WHATSNEW_LINUX - Enables compilation of blake2 on Linux/macOS - Makes header name check also work with lowercase header - Changes WahtsNew to be only enabled when browser panels are available
This commit is contained in:
@@ -81,6 +81,10 @@
|
||||
#include "windows.h"
|
||||
#endif
|
||||
|
||||
#if !defined(_WIN32) && defined(WHATSNEW_ENABLED)
|
||||
#include "nix-update/nix-update.hpp"
|
||||
#endif
|
||||
|
||||
#include "ui_OBSBasic.h"
|
||||
#include "ui_ColorSelect.h"
|
||||
|
||||
@@ -2106,7 +2110,7 @@ void OBSBasic::OnFirstLoad()
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_FINISHED_LOADING);
|
||||
|
||||
#if defined(BROWSER_AVAILABLE) && defined(_WIN32)
|
||||
#ifdef WHATSNEW_ENABLED
|
||||
/* Attempt to load init screen if available */
|
||||
if (cef) {
|
||||
WhatsNewInfoThread *wnit = new WhatsNewInfoThread();
|
||||
@@ -2141,8 +2145,7 @@ void OBSBasic::OnFirstLoad()
|
||||
/* shows a "what's new" page on startup of new versions using CEF */
|
||||
void OBSBasic::ReceivedIntroJson(const QString &text)
|
||||
{
|
||||
#ifdef BROWSER_AVAILABLE
|
||||
#ifdef _WIN32
|
||||
#ifdef WHATSNEW_ENABLED
|
||||
if (closing)
|
||||
return;
|
||||
|
||||
@@ -2229,9 +2232,6 @@ void OBSBasic::ReceivedIntroJson(const QString &text)
|
||||
whatsNewInitThread.reset(wnbit);
|
||||
whatsNewInitThread->start();
|
||||
|
||||
#else
|
||||
UNUSED_PARAMETER(text);
|
||||
#endif
|
||||
#else
|
||||
UNUSED_PARAMETER(text);
|
||||
#endif
|
||||
@@ -2243,7 +2243,6 @@ void OBSBasic::ReceivedIntroJson(const QString &text)
|
||||
void OBSBasic::ShowWhatsNew(const QString &url)
|
||||
{
|
||||
#ifdef BROWSER_AVAILABLE
|
||||
#ifdef _WIN32
|
||||
if (closing)
|
||||
return;
|
||||
|
||||
@@ -2282,9 +2281,6 @@ void OBSBasic::ShowWhatsNew(const QString &url)
|
||||
#else
|
||||
UNUSED_PARAMETER(url);
|
||||
#endif
|
||||
#else
|
||||
UNUSED_PARAMETER(url);
|
||||
#endif
|
||||
}
|
||||
|
||||
void OBSBasic::UpdateMultiviewProjectorMenu()
|
||||
|
||||
Reference in New Issue
Block a user