From d3b647ab2b19626b2f86b5c2af3946c1fcf22068 Mon Sep 17 00:00:00 2001 From: Twinki Date: Sat, 15 Jun 2024 12:51:47 -0400 Subject: Use new Skip File & Skip Directory in usvfs (#2033) * Use new Skip File & Skip Directory in usvfs. # Motivations https://github.com/ModOrganizer2/usvfs/pull/61 Highlights some reasons why the ability to skip files & directories would be beneficial # Modifications - Add two new settings, `skip_file_suffixes` and `skip_directories` - Wire the two new settings up to usvfs - Add two new buttons to the `Workarounds` dialog, one to adjust Skip File Suffixes and another for Skip Directories, both buttons act nearly identical to the Executable Blacklist button - Add a new grouping in the `Workarounds` dialog box that contains the usvfs buttons to keep the dialog a tad organized --- src/settingsdialogworkarounds.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/settingsdialogworkarounds.h') diff --git a/src/settingsdialogworkarounds.h b/src/settingsdialogworkarounds.h index 8c86fd69..d31bb371 100644 --- a/src/settingsdialogworkarounds.h +++ b/src/settingsdialogworkarounds.h @@ -20,13 +20,29 @@ public: static std::optional changeBlacklistLater(QWidget* parent, const QString& current); + // shows the blacklist dialog from the given string and returns the new + // blacklist if the user accepted it + // + static std::optional changeSkipFileSuffixes(QWidget* parent, + const QStringList& current); + + // shows the blacklist dialog from the given string and returns the new + // blacklist if the user accepted it + // + static std::optional changeSkipDirectories(QWidget* parent, + const QStringList& current); + void update(); private: QString m_ExecutableBlacklist; + QStringList m_SkipFileSuffixes; + QStringList m_SkipDirectories; void on_bsaDateBtn_clicked(); void on_execBlacklistBtn_clicked(); + void on_skipFileSuffixBtn_clicked(); + void on_skipDirectoriesBtn_clicked(); void on_resetGeometryBtn_clicked(); }; -- cgit v1.3.1