From 5e49ee25693ce90bf32cc4c01446b2f41e231e03 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Sun, 6 Jun 2021 00:47:52 -0700 Subject: [PATCH] SettingsDialog: A few improvements --- data/locale/en-US.ini | 2 +- src/forms/SettingsDialog.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data/locale/en-US.ini b/data/locale/en-US.ini index 6986f9a9..334bb014 100644 --- a/data/locale/en-US.ini +++ b/data/locale/en-US.ini @@ -4,7 +4,7 @@ OBSWebSocket.Settings.PluginSettingsTitle="Plugin Settings" OBSWebSocket.Settings.ServerEnable="Enable WebSocket server" OBSWebSocket.Settings.AlertsEnable="Enable System Tray Alerts" OBSWebSocket.Settings.DebugEnable="Enable Debug Logging" -OBSWebSocket.Settings.DebugEnableHoverText="Enables debug logging for the current instance of OBS. Does not persist on load. Use --websocket_debug to enable on load." +OBSWebSocket.Settings.DebugEnableHoverText="Enables debug logging for the current instance of OBS. Does not persist on load.\nUse --websocket_debug to enable on load." OBSWebSocket.Settings.ServerSettingsTitle="Server Settings" OBSWebSocket.Settings.AuthRequired="Enable Authentication" diff --git a/src/forms/SettingsDialog.cpp b/src/forms/SettingsDialog.cpp index d3c22a3e..a4737394 100644 --- a/src/forms/SettingsDialog.cpp +++ b/src/forms/SettingsDialog.cpp @@ -29,7 +29,11 @@ SettingsDialog::SettingsDialog(QWidget* parent) : ui->websocketSessionTable->horizontalHeader()->resizeSection(3, 100); // Resize Session Table column widths ui->websocketSessionTable->horizontalHeader()->resizeSection(4, 100); - ui->enableDebugLoggingToolTipLabel->setText(GetToolTipIconHtml()); // Set the appropriate tooltip icon for the theme + // Remove the ? button on dialogs on Windows + setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); + + // Set the appropriate tooltip icon for the theme + ui->enableDebugLoggingToolTipLabel->setText(GetToolTipIconHtml()); connect(sessionTableTimer, &QTimer::timeout, this, &SettingsDialog::FillSessionTable);