fix(ui): add tool tip when global shortcuts are not supported

This commit is contained in:
Oleg Shparber 2023-10-01 22:29:09 -04:00
parent c507362889
commit 1d92d3c737

View File

@ -79,7 +79,10 @@ SettingsDialog::SettingsDialog(QWidget *parent)
setTabOrder(ui->fontSizeComboBox, ui->serifFontComboBox);
// Disable global shortcut settings if not supported.
ui->globalHotKeyGroupBox->setEnabled(QxtGlobalShortcut::isSupported());
if (!QxtGlobalShortcut::isSupported()) {
ui->globalHotKeyGroupBox->setEnabled(false);
ui->globalHotKeyGroupBox->setToolTip(tr("Global shortcuts are not supported on the current platform."));
}
QWebEngineSettings *webSettings = QWebEngineProfile::defaultProfile()->settings();