aboutsummaryrefslogtreecommitdiff
path: root/src/dialogs/settingsdialog.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2020-12-30 16:38:06 +1100
committerFelix Queißner <felix@ib-queissner.de>2020-12-30 11:10:54 +0100
commite5814f2bae65e9b757a26e8b263d5e868dbb2f41 (patch)
tree0d6963b254b7ad8bd2bf4f1e5210104d0fb92dfc /src/dialogs/settingsdialog.cpp
parent3854701237560d1655bcf713bdd5a3f91f3a075b (diff)
downloadkristall-e5814f2bae65e9b757a26e8b263d5e868dbb2f41.tar.gz
Add preference to show hidden files in directory listings
also improved listing code so that files and dirs with spaces now display and function properly
Diffstat (limited to 'src/dialogs/settingsdialog.cpp')
-rw-r--r--src/dialogs/settingsdialog.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp
index 563c728..269a0bd 100644
--- a/src/dialogs/settingsdialog.cpp
+++ b/src/dialogs/settingsdialog.cpp
@@ -218,6 +218,12 @@ void SettingsDialog::setOptions(const GenericSettings &options)
this->ui->scheme_error->setChecked(true);
}
+ if(this->current_options.show_hidden_files_in_dirs) {
+ this->ui->show_hidden_files->setChecked(true);
+ } else {
+ this->ui->hide_hidden_files->setChecked(true);
+ }
+
this->ui->max_redirects->setValue(this->current_options.max_redirections);
this->ui->redirection_mode->setCurrentIndex(0);
@@ -610,6 +616,16 @@ void SettingsDialog::on_scheme_error_clicked()
this->current_options.use_os_scheme_handler = false;
}
+void SettingsDialog::on_show_hidden_files_clicked()
+{
+ this->current_options.show_hidden_files_in_dirs = true;
+}
+
+void SettingsDialog::on_hide_hidden_files_clicked()
+{
+ this->current_options.show_hidden_files_in_dirs = false;
+}
+
void SettingsDialog::on_redirection_mode_currentIndexChanged(int index)
{
this->current_options.redirection_policy = GenericSettings::RedirectionWarning(this->ui->redirection_mode->itemData(index).toInt());