Skip to content

Commit

Permalink
fix(ui): add tool tip when global shortcuts are not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
trollixx committed Oct 2, 2023
1 parent c507362 commit 1d92d3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libs/ui/settingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 1d92d3c

Please sign in to comment.