2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Add portal-based open with dialog implementation

This commit is contained in:
Ilya Fedin
2021-03-07 02:29:13 +04:00
committed by John Preston
parent a27a54798c
commit b918170464
7 changed files with 229 additions and 20 deletions

View File

@@ -12,7 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "platform/linux/linux_gtk_integration_p.h"
#include "platform/linux/linux_gdk_helper.h"
#include "platform/linux/linux_gtk_file_dialog.h"
#include "platform/linux/linux_open_with_dialog.h"
#include "platform/linux/linux_gtk_open_with_dialog.h"
namespace Platform {
namespace internal {
@@ -185,7 +185,7 @@ bool GtkIntegration::getFileDialog(
}
bool GtkIntegration::showOpenWithDialog(const QString &filepath) const {
return File::internal::ShowOpenWithDialog(filepath);
return File::internal::ShowGtkOpenWithDialog(filepath);
}
QImage GtkIntegration::getImageFromClipboard() const {