Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: xiaoming <[email protected]>
  • Loading branch information
QQxiaoming committed Sep 19, 2024
1 parent 18054ed commit caf0ccc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,7 @@ void CentralWidget::menuAndToolBarRetranslateUi(void) {

void CentralWidget::menuAndToolBarInit(bool disable_plugin) {
GlobalSetting settings;
int size = 0;

ui->toolBar->setIconSize(QSize(16,16));
ui->toolBar->setToolButtonStyle(Qt::ToolButtonIconOnly);
Expand Down Expand Up @@ -2215,7 +2216,7 @@ void CentralWidget::menuAndToolBarInit(bool disable_plugin) {
cleanAllRecentScriptAction = new QAction(this);
scriptMenu->addAction(cleanAllRecentScriptAction);
#ifdef ENABLE_PYTHON
int size = settings.beginReadArray("Global/RecentScript");
size = settings.beginReadArray("Global/RecentScript");
for(int i=0;i<size;i++) {
settings.setArrayIndex(i);
QString path = settings.value("path").toString();
Expand Down

0 comments on commit caf0ccc

Please sign in to comment.