mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Get rid of sandboxed paths workaround
This is fixed in xdg-desktop-portal 1.17. There's no way to check xdg-desktop-portal version so it's either not having support for passing last used path at all in sandbox or encountering the bug on old systems.
This commit is contained in:
parent
0f86968afd
commit
082b5ba782
1 changed files with 0 additions and 5 deletions
|
@ -93,11 +93,6 @@ bool Get(
|
||||||
if (parent) {
|
if (parent) {
|
||||||
parent = parent->window();
|
parent = parent->window();
|
||||||
}
|
}
|
||||||
// Workaround for sandboxed paths
|
|
||||||
static const auto docRegExp = QRegularExpression("^/run/user/\\d+/doc");
|
|
||||||
if (cDialogLastPath().contains(docRegExp)) {
|
|
||||||
InitLastPath();
|
|
||||||
}
|
|
||||||
return ::FileDialog::internal::GetDefault(
|
return ::FileDialog::internal::GetDefault(
|
||||||
parent,
|
parent,
|
||||||
files,
|
files,
|
||||||
|
|
Loading…
Add table
Reference in a new issue