mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Make UnsafeShowOpenWith inline on Linux
This commit is contained in:
parent
70f22293cf
commit
7ddcc47fcd
2 changed files with 6 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue