Enable permissions choice for other filesystems.

This commit is contained in:
Andrius Štikonas 2021-12-28 15:50:30 +00:00
parent 1edb947525
commit 4e5cbcdb65
1 changed files with 12 additions and 1 deletions

View File

@ -118,9 +118,20 @@ void NewDialog::setupDialog()
connect(&dialogWidget().comboFileSystem(), QOverload<int>::of(&QComboBox::currentIndexChanged), this, [this]{
const QString currText = dialogWidget().comboFileSystem().currentText();
const bool enablePosixPermission = QList<QString>({
QStringLiteral("btrfs"),
QStringLiteral("ext2"),
QStringLiteral("ext3"),
QStringLiteral("ext4")}
QStringLiteral("ext4"),
QStringLiteral("f2fs"),
QStringLiteral("hfsplus"),
QStringLiteral("jfs"),
QStringLiteral("minix"),
QStringLiteral("ocfs2"),
QStringLiteral("reiserfs"),
QStringLiteral("reiser4"),
QStringLiteral("udf"),
QStringLiteral("xfs"),
QStringLiteral("zfs"),}
).contains(currText);
if (enablePosixPermission) {
dialogWidget().showPosixPermissions();