mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
IgnoreEditor: Rename confusing checkbox
The label was the negation of its name.
This commit is contained in:
parent
c2c924931b
commit
a6d70c9c63
2 changed files with 4 additions and 5 deletions
|
@ -58,7 +58,7 @@ IgnoreListEditor::IgnoreListEditor(QWidget *parent) :
|
|||
ui->tableWidget->horizontalHeader()->setResizeMode(patternCol, QHeaderView::Stretch);
|
||||
ui->tableWidget->verticalHeader()->setVisible(false);
|
||||
|
||||
ui->ignoreHiddenFilesCheckBox->setChecked( !FolderMan::instance()->ignoreHiddenFiles() );
|
||||
ui->syncHiddenFilesCheckBox->setChecked( !FolderMan::instance()->ignoreHiddenFiles() );
|
||||
}
|
||||
|
||||
IgnoreListEditor::~IgnoreListEditor()
|
||||
|
@ -68,7 +68,7 @@ IgnoreListEditor::~IgnoreListEditor()
|
|||
|
||||
bool IgnoreListEditor::ignoreHiddenFiles()
|
||||
{
|
||||
return ! ui->ignoreHiddenFilesCheckBox->isChecked();
|
||||
return ! ui->syncHiddenFilesCheckBox->isChecked();
|
||||
}
|
||||
|
||||
void IgnoreListEditor::slotItemSelectionChanged()
|
||||
|
@ -119,12 +119,11 @@ void IgnoreListEditor::slotUpdateLocalIgnoreList()
|
|||
}
|
||||
|
||||
/* handle the hidden file checkbox */
|
||||
bool ignoreHiddenFiles = ! ui->ignoreHiddenFilesCheckBox->isChecked();
|
||||
|
||||
/* the ignoreHiddenFiles flag is a folder specific setting, but for now, it is
|
||||
* handled globally. Save it to every folder that is defined.
|
||||
*/
|
||||
FolderMan::instance()->setIgnoreHiddenFiles(ignoreHiddenFiles);
|
||||
FolderMan::instance()->setIgnoreHiddenFiles(ignoreHiddenFiles());
|
||||
}
|
||||
|
||||
void IgnoreListEditor::slotAddPattern()
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="ignoreHiddenFilesCheckBox">
|
||||
<widget class="QCheckBox" name="syncHiddenFilesCheckBox">
|
||||
<property name="text">
|
||||
<string>Sync hidden files</string>
|
||||
</property>
|
||||
|
|
Loading…
Reference in a new issue