Make UnsafeShowOpenWith inline on Linux
This commit is contained in:
parent
70f22293cf
commit
7ddcc47fcd
|
@ -6,15 +6,3 @@ For license and copyright information please follow this link:
|
||||||
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
*/
|
*/
|
||||||
#include "platform/linux/file_utilities_linux.h"
|
#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
|
|
||||||
|
|
|
@ -9,6 +9,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
|
||||||
#include "platform/platform_file_utilities.h"
|
#include "platform/platform_file_utilities.h"
|
||||||
|
|
||||||
|
#include "platform/linux/linux_xdp_open_with_dialog.h"
|
||||||
|
|
||||||
namespace Platform {
|
namespace Platform {
|
||||||
namespace File {
|
namespace File {
|
||||||
|
|
||||||
|
@ -28,6 +30,10 @@ inline bool UnsafeShowOpenWithDropdown(const QString &filepath) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool UnsafeShowOpenWith(const QString &filepath) {
|
||||||
|
return internal::ShowXDPOpenWithDialog(filepath);
|
||||||
|
}
|
||||||
|
|
||||||
inline void UnsafeLaunch(const QString &filepath) {
|
inline void UnsafeLaunch(const QString &filepath) {
|
||||||
return ::File::internal::UnsafeLaunchDefault(filepath);
|
return ::File::internal::UnsafeLaunchDefault(filepath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user