0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

UI: Remove help icon from auth/what's new titlebars

This commit is contained in:
jp9000 2019-02-10 22:31:59 -08:00
parent d416f781fd
commit 3f59e2fb13
2 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,10 @@ OAuthLogin::OAuthLogin(QWidget *parent, const std::string &url, bool token)
setMinimumSize(400, 400);
resize(700, 700);
Qt::WindowFlags flags = windowFlags();
Qt::WindowFlags helpFlag = Qt::WindowContextHelpButtonHint;
setWindowFlags(flags & (~helpFlag));
OBSBasic::InitBrowserPanelSafeBlock(true);
cefWidget = cef->create_widget(nullptr, url, panel_cookies);

View File

@ -1923,6 +1923,10 @@ void OBSBasic::ReceivedIntroJson(const QString &text)
dlg->setWindowTitle("What's New");
dlg->resize(700, 600);
Qt::WindowFlags flags = dlg->windowFlags();
Qt::WindowFlags helpFlag = Qt::WindowContextHelpButtonHint;
dlg->setWindowFlags(flags & (~helpFlag));
QCefWidget *cefWidget = cef->create_widget(nullptr, info_url);
if (!cefWidget) {
return;