Commit 94a98709 authored by Snehit Sah's avatar Snehit Sah Committed by Albert Astals Cid
Browse files

Update settings panel for Flatpak



Cannot set custom file manager when running KDF as Flatpak
so disable file manager selection widgets and display a
message below them.
Signed-off-by: Snehit Sah's avatarSnehit Sah <snehitsah@protonmail.com>
parent f40db6fb
Pipeline #128062 passed with stage
in 46 seconds
......@@ -79,6 +79,13 @@ KDFConfigWidget::KDFConfigWidget(QWidget *parent, bool init)
connect(mOpenMountCheck,&QAbstractButton::toggled,this,&KDFConfigWidget::slotChanged);
connect(mPopupFullCheck,&QAbstractButton::toggled,this,&KDFConfigWidget::slotChanged);
if(!QStandardPaths::locate(QStandardPaths::RuntimeLocation, QLatin1String("flatpak-info")).isEmpty())
{
mFlatpakLabel->setVisible( true );
mSystemFileManagerCheck->setEnabled( false );
mFileManagerEdit->setEnabled( false );
}
}
loadSettings();
......
......@@ -80,6 +80,21 @@
<item row="3" column="1">
<widget class="KLineEdit" name="mFileManagerEdit"/>
</item>
<item row="4" column="0" colspan="2">
<widget class="QLabel" name="mFlatpakLabel">
<property name="visible">
<bool>false</bool>
</property>
<property name="font">
<font>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>Custom file manager not supported when running as Flatpak.</string>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment