From a09f2aee0adfe1ecf234e39b73f49bb9b18f7d58 Mon Sep 17 00:00:00 2001 From: QxQ <59914293+U-v-U@users.noreply.github.com> Date: Fri, 5 Feb 2021 10:09:54 +0800 Subject: [PATCH] remove QRCode import GUI --- makespec/BUILDVERSION | 2 +- src/base/Qv2rayFeatures.hpp | 2 +- src/ui/widgets/windows/w_ImportConfig.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/makespec/BUILDVERSION b/makespec/BUILDVERSION index 71288dfa..897b8ab2 100644 --- a/makespec/BUILDVERSION +++ b/makespec/BUILDVERSION @@ -1 +1 @@ -6137 +6138 diff --git a/src/base/Qv2rayFeatures.hpp b/src/base/Qv2rayFeatures.hpp index 9329e683..e2730b2d 100644 --- a/src/base/Qv2rayFeatures.hpp +++ b/src/base/Qv2rayFeatures.hpp @@ -11,7 +11,7 @@ #define QVFEATURE_kernel_set_permission 1 // UI Options -#define QVFEATURE_ui_has_import_qrcode 1 +#define QVFEATURE_ui_has_import_qrcode -1 #define QVFEATURE_ui_has_store_state 1 // clang-format on diff --git a/src/ui/widgets/windows/w_ImportConfig.cpp b/src/ui/widgets/windows/w_ImportConfig.cpp index 6e277aa5..23716b05 100644 --- a/src/ui/widgets/windows/w_ImportConfig.cpp +++ b/src/ui/widgets/windows/w_ImportConfig.cpp @@ -40,6 +40,7 @@ ImportConfigWindow::ImportConfigWindow(QWidget *parent) : QvDialog("ImportWindow groupCombo->setCurrentIndex(defaultItemIndex); #if !QV2RAY_FEATURE(ui_has_import_qrcode) qrCodeTab->setVisible(false); + tabWidget->removeTab(1); #endif }