mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +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) {
|
||||
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(
|
||||
parent,
|
||||
files,
|
||||
|
|
Loading…
Add table
Reference in a new issue