Skip to content

Commit 0bddfbe

Browse files
sowicmsowicm
authored andcommitted
修改temp build路径
1 parent 25d7801 commit 0bddfbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LiteEditor/frame.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2882,7 +2882,7 @@ void clMainFrame::OnExecuteNoDebug(wxCommandEvent& event)
28822882

28832883
if (editor->untitled())
28842884
{
2885-
wxFileName tmpFileName = wxFileName(clStandardPaths::Get().GetUserDataDir(), ".tmpbuild.c");
2885+
wxFileName tmpFileName = wxFileName(wxFileName::GetTempDir(), "codepad_tmp_build.c");
28862886
//sessionFileName.AppendDir("tmp");
28872887
wxFFile fp(tmpFileName.GetFullPath(), wxT("wb"));
28882888
if (!fp.IsOpened())
@@ -2902,9 +2902,9 @@ void clMainFrame::OnExecuteNoDebug(wxCommandEvent& event)
29022902
ManagerST::Get()->PushQueueCommand(buildCommand);
29032903
commandExecute.SetCheckBuildSuccess(true); // execute only if build was successfull
29042904
ManagerST::Get()->PushQueueCommand(commandExecute);
2905+
// ManagerST::Get()->ProcessCommandQueue();
29052906
ManagerST::Get()->ProcessCommandQueue();
2906-
ManagerST::Get()->ProcessCommandQueue();
2907-
ManagerST::Get()->filename(wxEmptyString);
2907+
//ManagerST::Get()->filename(wxEmptyString);
29082908
}
29092909
catch (char* str)
29102910
{

0 commit comments

Comments
 (0)