From 2b581531db6f1b14eb2359bb5aa5b5dc454737a8 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 19 Jan 2024 15:27:29 +0800 Subject: [PATCH] Fix: system.json theme not correctly hidden in the initial dialog --- RedPandaIDE/widgets/aboutdialog.ui | 2 +- RedPandaIDE/widgets/choosethemedialog.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RedPandaIDE/widgets/aboutdialog.ui b/RedPandaIDE/widgets/aboutdialog.ui index 8b5a4fc3..e8f2b161 100644 --- a/RedPandaIDE/widgets/aboutdialog.ui +++ b/RedPandaIDE/widgets/aboutdialog.ui @@ -56,7 +56,7 @@ - Copyright(C) 2021-2022 瞿华(royqh1979@gmail.com) + Copyright(C) 2021-2024 瞿华(royqh1979@gmail.com) diff --git a/RedPandaIDE/widgets/choosethemedialog.cpp b/RedPandaIDE/widgets/choosethemedialog.cpp index d7764d07..8d50eb57 100644 --- a/RedPandaIDE/widgets/choosethemedialog.cpp +++ b/RedPandaIDE/widgets/choosethemedialog.cpp @@ -23,9 +23,9 @@ ChooseThemeDialog::ChooseThemeDialog(QWidget *parent) : { ui->setupUi(this); #ifdef ENABLE_LUA_ADDON - ui->rbAuto->setChecked(true); + ui->rbAuto->setVisible(true); #else - ui->rbAuto->setChecked(false); + ui->rbAuto->setVisible(false); #endif ui->rbDark->setChecked(true); ui->rbCpp->setChecked(true);