Skip to content

Commit 16ed136

Browse files
chore: update the file
1 parent a0ac661 commit 16ed136

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Common/wxTools.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,16 @@ void FailureWriter(const char *data, size_t size)
5151

5252
std::string LogPath()
5353
{
54-
#if defined(__WINDOWS__)
55-
#if defined(WXT_PORTABLE_EDITION)
54+
#if defined(__WINDOWS__) && !defined(WXT_PORTABLE_EDITION)
55+
wxString path = wxtMsAppLocalDataPath();
56+
path += wxString(wxFileName::GetPathSeparator()) + wxString("LocalState");
57+
path += wxString(wxFileName::GetPathSeparator()) + wxString("log");
58+
#else
5659
wxString path = GetSettingsPath();
5760
path += wxFileName::GetPathSeparator();
5861
path += wxString("..");
5962
path += wxFileName::GetPathSeparator();
6063
path += wxString("log");
61-
#else
62-
wxString path = wxtMsAppLocalDataPath();
63-
path += wxString(wxFileName::GetPathSeparator()) + wxString("LocalState");
64-
path += wxString(wxFileName::GetPathSeparator()) + wxString("log");
65-
#endif
6664
#endif
6765

6866
#if defined(WIN32)

0 commit comments

Comments
 (0)