Make UnsafeShowOpenWith inline on Linux

This commit is contained in:
Ilya Fedin 2023-09-29 21:59:14 +04:00 committed by John Preston
parent 70f22293cf
commit 7ddcc47fcd
2 changed files with 6 additions and 12 deletions

View File

@ -6,15 +6,3 @@ For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "platform/linux/file_utilities_linux.h"
#include "platform/linux/linux_xdp_open_with_dialog.h"
namespace Platform {
namespace File {
bool UnsafeShowOpenWith(const QString &filepath) {
return internal::ShowXDPOpenWithDialog(filepath);
}
} // namespace File
} // namespace Platform

View File

@ -9,6 +9,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "platform/platform_file_utilities.h"
#include "platform/linux/linux_xdp_open_with_dialog.h"
namespace Platform {
namespace File {
@ -28,6 +30,10 @@ inline bool UnsafeShowOpenWithDropdown(const QString &filepath) {
return false;
}
inline bool UnsafeShowOpenWith(const QString &filepath) {
return internal::ShowXDPOpenWithDialog(filepath);
}
inline void UnsafeLaunch(const QString &filepath) {
return ::File::internal::UnsafeLaunchDefault(filepath);
}