Fix visibility of libsyncthing-specific settings widgets
This commit is contained in:
parent
a9225c5a35
commit
b5cf0523b6
|
@ -883,6 +883,12 @@ QWidget *LauncherOptionPage::setupWidget()
|
||||||
ui()->showButtonCheckBox->setVisible(false);
|
ui()->showButtonCheckBox->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// hide libsyncthing-controls by default (as the checkbox is unchecked by default)
|
||||||
|
for (auto *const widget : std::initializer_list<QWidget *>{ ui()->configDirLabel, ui()->configDirPathSelection, ui()->dataDirLabel,
|
||||||
|
ui()->dataDirPathSelection, ui()->logLevelLabel, ui()->logLevelComboBox }) {
|
||||||
|
widget->setVisible(false);
|
||||||
|
}
|
||||||
|
|
||||||
// add "restore to defaults" action for Syncthing arguments
|
// add "restore to defaults" action for Syncthing arguments
|
||||||
if (isSyncthing) {
|
if (isSyncthing) {
|
||||||
m_restoreArgsAction = new QAction(ui()->argumentsLineEdit);
|
m_restoreArgsAction = new QAction(ui()->argumentsLineEdit);
|
||||||
|
|
Loading…
Reference in New Issue