mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
Add tooltip message when system tray icon isn't available
Also don't hide the sub-options as they are already in disabled state.
This commit is contained in:
parent
e4fafb911a
commit
e54124fdb8
@ -262,6 +262,7 @@ OptionsDialog::OptionsDialog(IGUIApplication *app, QWidget *parent)
|
|||||||
|
|
||||||
// Load options
|
// Load options
|
||||||
loadOptions();
|
loadOptions();
|
||||||
|
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
m_ui->checkShowSystray->setVisible(false);
|
m_ui->checkShowSystray->setVisible(false);
|
||||||
#else
|
#else
|
||||||
@ -270,8 +271,7 @@ OptionsDialog::OptionsDialog(IGUIApplication *app, QWidget *parent)
|
|||||||
{
|
{
|
||||||
m_ui->checkShowSystray->setChecked(false);
|
m_ui->checkShowSystray->setChecked(false);
|
||||||
m_ui->checkShowSystray->setEnabled(false);
|
m_ui->checkShowSystray->setEnabled(false);
|
||||||
m_ui->labelTrayIconStyle->setVisible(false);
|
m_ui->checkShowSystray->setToolTip(tr("Disabled due to failed to detect system tray presence"));
|
||||||
m_ui->comboTrayIcon->setVisible(false);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user