From d2a2002629b3cdb54c88639a83cd03e2045c3fdb Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 16 Dec 2022 18:31:48 +0800 Subject: [PATCH] fix: Compiler buttons not correctly disabled for non-c/c++ files --- RedPandaIDE/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index b1411c72..377be803 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -661,11 +661,11 @@ void MainWindow::updateCompileActions() bool canCompile = false; Editor * e = mEditorList->getEditor(); if (e) { - canCompile = true; if (!e->inProject()) { FileType fileType = getFileType(e->filename()); if (fileType == FileType::CSource || fileType == FileType::CppSource || e->isNew()) { + canCompile = true; canRun = true; } } else {