mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Init last path with gtk dialog
This commit is contained in:
parent
88951e9e5c
commit
294f849775
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
*/
|
*/
|
||||||
#include "platform/linux/linux_gtk_file_dialog.h"
|
#include "platform/linux/linux_gtk_file_dialog.h"
|
||||||
|
|
||||||
|
#include "platform/platform_file_utilities.h"
|
||||||
#include "platform/linux/linux_gtk_integration_p.h"
|
#include "platform/linux/linux_gtk_integration_p.h"
|
||||||
#include "platform/linux/linux_gdk_helper.h"
|
#include "platform/linux/linux_gdk_helper.h"
|
||||||
#include "platform/linux/linux_desktop_environment.h"
|
#include "platform/linux/linux_desktop_environment.h"
|
||||||
|
@ -655,6 +656,10 @@ bool Get(
|
||||||
const QString &filter,
|
const QString &filter,
|
||||||
Type type,
|
Type type,
|
||||||
QString startFile) {
|
QString startFile) {
|
||||||
|
if (cDialogLastPath().isEmpty()) {
|
||||||
|
InitLastPath();
|
||||||
|
}
|
||||||
|
|
||||||
GtkFileDialog dialog(parent, caption, QString(), filter);
|
GtkFileDialog dialog(parent, caption, QString(), filter);
|
||||||
|
|
||||||
dialog.setModal(true);
|
dialog.setModal(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue