2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

Allow selecting export folder.

This commit is contained in:
John Preston
2018-06-20 19:12:47 +01:00
parent 154e5660de
commit 156c3d288c
7 changed files with 28 additions and 17 deletions

View File

@@ -151,7 +151,8 @@ void Launcher::prepareSettings() {
info = info.symLinkTarget();
}
if (info.exists()) {
gExeDir = info.absoluteDir().absolutePath() + '/';
const auto dir = info.absoluteDir().absolutePath();
gExeDir = (dir.endsWith('/') ? dir : (dir + '/'));
gExeName = info.fileName();
}
}