2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Use separate download folder for support.

This commit is contained in:
John Preston
2018-11-22 17:15:52 +04:00
parent 7705999e57
commit 3f58c930e3
13 changed files with 17 additions and 29 deletions

View File

@@ -138,6 +138,16 @@ void ShowInFolder(const QString &filepath) {
});
}
QString DefaultDownloadPath() {
return QStandardPaths::writableLocation(
QStandardPaths::DownloadLocation)
+ '/'
+ (AuthSession::Exists() && Auth().supportMode()
? "Tsupport Desktop"
: str_const_toString(AppName))
+ '/';
}
namespace internal {
void UnsafeOpenEmailLinkDefault(const QString &email) {