diff --git a/NEWS.md b/NEWS.md index fd3949db..05a8ca42 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,7 @@ Red Panda C++ Version 2.13 - fix: Only C/C++/GAS files can set breakpoints. - Enhancement: Don't show breakpoints/watch related menuitems in context menu for non-C/C++/GAS files. + - Enhancement: Disable reformat code for non-C/C++ files. Red Panda C++ Version 2.12 diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index be45b0c3..a50c89ee 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -624,7 +624,7 @@ void MainWindow::updateEditorActions(const Editor *e) ui->actionFind_Previous->setEnabled(true); //code - ui->actionReformat_Code->setEnabled(true); + ui->actionReformat_Code->setEnabled(isCFile(e->filename()) || isHFile(e->filename())); ui->actionClose->setEnabled(true); ui->actionClose_All->setEnabled(true); diff --git a/Red_Panda_CPP.pro b/Red_Panda_CPP.pro index 1f2fe1a9..dc78a583 100644 --- a/Red_Panda_CPP.pro +++ b/Red_Panda_CPP.pro @@ -14,7 +14,7 @@ qsynedit.subdir = libs/qsynedit APP_NAME = RedPandaCPP -APP_VERSION = 2.12 +APP_VERSION = 2.13 # Add the dependencies so that the RedPandaIDE project can add the depended programs # into the main app bundle