mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
made this: if Tray become disabled and startInTray was enabled, startInTray before blocks, goes disabled too
This commit is contained in:
parent
c5419f8783
commit
041c01f3a4
1 changed files with 4 additions and 2 deletions
|
@ -549,8 +549,10 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
|
|||
cameraFrameRateCombo_ = new QComboBox{this};
|
||||
timelineMaxWidthSpin_ = new QSpinBox{this};
|
||||
|
||||
if (!settings_->tray())
|
||||
if (!settings_->tray()) {
|
||||
startInTrayToggle_->setState(false);
|
||||
startInTrayToggle_->setDisabled(true);
|
||||
}
|
||||
|
||||
avatarCircles_->setFixedSize(64, 48);
|
||||
|
||||
|
@ -875,6 +877,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
|
|||
if (enabled) {
|
||||
startInTrayToggle_->setEnabled(true);
|
||||
} else {
|
||||
startInTrayToggle_->setState(false);
|
||||
startInTrayToggle_->setDisabled(true);
|
||||
}
|
||||
emit trayOptionChanged(enabled);
|
||||
|
@ -971,7 +974,6 @@ UserSettingsPage::showEvent(QShowEvent *)
|
|||
utils::restoreCombobox(themeCombo_, settings_->theme());
|
||||
utils::restoreCombobox(ringtoneCombo_, settings_->ringtone());
|
||||
|
||||
// FIXME: Toggle treats true as "off"
|
||||
trayToggle_->setState(settings_->tray());
|
||||
startInTrayToggle_->setState(settings_->startInTray());
|
||||
groupViewToggle_->setState(settings_->groupView());
|
||||
|
|
Loading…
Reference in a new issue