From 2ab3cda7436698de3eaab01f092cdcbe0b2623cc Mon Sep 17 00:00:00 2001
From: John Preston <johnprestonmail@gmail.com>
Date: Fri, 10 Feb 2017 13:10:33 +0300
Subject: [PATCH] Use current folder in Debug configuration for UWP.

---
 Telegram/SourceFiles/logs.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Telegram/SourceFiles/logs.cpp b/Telegram/SourceFiles/logs.cpp
index da89d4a41..560621ed6 100644
--- a/Telegram/SourceFiles/logs.cpp
+++ b/Telegram/SourceFiles/logs.cpp
@@ -332,7 +332,11 @@ namespace Logs {
 			cForceWorkingDir(psAppDataPath());
 			workingDirChosen = true;
 #elif defined OS_WIN_STORE
+#ifdef _DEBUG
+			cForceWorkingDir(cExeDir());
+#else // _DEBUG
 			cForceWorkingDir(psAppDataPath());
+#endif // else for _DEBUG
 #endif // OS_WIN_STORE
 		}