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->horizontalHeader()->setResizeMode(patternCol, QHeaderView::Stretch);
|
||||||
ui->tableWidget->verticalHeader()->setVisible(false);
|
ui->tableWidget->verticalHeader()->setVisible(false);
|
||||||
|
|
||||||
ui->ignoreHiddenFilesCheckBox->setChecked( !FolderMan::instance()->ignoreHiddenFiles() );
|
ui->syncHiddenFilesCheckBox->setChecked( !FolderMan::instance()->ignoreHiddenFiles() );
|
||||||
}
|
}
|
||||||
|
|
||||||
IgnoreListEditor::~IgnoreListEditor()
|
IgnoreListEditor::~IgnoreListEditor()
|
||||||
|
@ -68,7 +68,7 @@ IgnoreListEditor::~IgnoreListEditor()
|
||||||
|
|
||||||
bool IgnoreListEditor::ignoreHiddenFiles()
|
bool IgnoreListEditor::ignoreHiddenFiles()
|
||||||
{
|
{
|
||||||
return ! ui->ignoreHiddenFilesCheckBox->isChecked();
|
return ! ui->syncHiddenFilesCheckBox->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
void IgnoreListEditor::slotItemSelectionChanged()
|
void IgnoreListEditor::slotItemSelectionChanged()
|
||||||
|
@ -119,12 +119,11 @@ void IgnoreListEditor::slotUpdateLocalIgnoreList()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* handle the hidden file checkbox */
|
/* handle the hidden file checkbox */
|
||||||
bool ignoreHiddenFiles = ! ui->ignoreHiddenFilesCheckBox->isChecked();
|
|
||||||
|
|
||||||
/* the ignoreHiddenFiles flag is a folder specific setting, but for now, it is
|
/* the ignoreHiddenFiles flag is a folder specific setting, but for now, it is
|
||||||
* handled globally. Save it to every folder that is defined.
|
* handled globally. Save it to every folder that is defined.
|
||||||
*/
|
*/
|
||||||
FolderMan::instance()->setIgnoreHiddenFiles(ignoreHiddenFiles);
|
FolderMan::instance()->setIgnoreHiddenFiles(ignoreHiddenFiles());
|
||||||
}
|
}
|
||||||
|
|
||||||
void IgnoreListEditor::slotAddPattern()
|
void IgnoreListEditor::slotAddPattern()
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QCheckBox" name="ignoreHiddenFilesCheckBox">
|
<widget class="QCheckBox" name="syncHiddenFilesCheckBox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Sync hidden files</string>
|
<string>Sync hidden files</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
Loading…
Reference in a new issue