Browse Source

Add tooltip message when system tray icon isn't available

Also don't hide the sub-options as they are already in disabled state.
adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
e54124fdb8
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/gui/optionsdialog.cpp

4
src/gui/optionsdialog.cpp

@ -262,6 +262,7 @@ OptionsDialog::OptionsDialog(IGUIApplication *app, QWidget *parent) @@ -262,6 +262,7 @@ OptionsDialog::OptionsDialog(IGUIApplication *app, QWidget *parent)
// Load options
loadOptions();
#ifdef Q_OS_MACOS
m_ui->checkShowSystray->setVisible(false);
#else
@ -270,8 +271,7 @@ OptionsDialog::OptionsDialog(IGUIApplication *app, QWidget *parent) @@ -270,8 +271,7 @@ OptionsDialog::OptionsDialog(IGUIApplication *app, QWidget *parent)
{
m_ui->checkShowSystray->setChecked(false);
m_ui->checkShowSystray->setEnabled(false);
m_ui->labelTrayIconStyle->setVisible(false);
m_ui->comboTrayIcon->setVisible(false);
m_ui->checkShowSystray->setToolTip(tr("Disabled due to failed to detect system tray presence"));
}
#endif

Loading…
Cancel
Save