From 33bc4bdee4f1df247191da2c284c2f602fdd9ddb Mon Sep 17 00:00:00 2001 From: isXander Date: Thu, 27 Jul 2023 20:23:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Prevent=20disabling=20controller?= =?UTF-8?q?=20when=20pressing=20'Maybe=20Later'=20on=20the=20calibration?= =?UTF-8?q?=20screen=20if=20the=20controller=20is=20already=20calibrated.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gui/screen/ControllerCalibrationScreen.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/dev/isxander/controlify/gui/screen/ControllerCalibrationScreen.java b/src/main/java/dev/isxander/controlify/gui/screen/ControllerCalibrationScreen.java index 98a6def..bedcdbc 100644 --- a/src/main/java/dev/isxander/controlify/gui/screen/ControllerCalibrationScreen.java +++ b/src/main/java/dev/isxander/controlify/gui/screen/ControllerCalibrationScreen.java @@ -196,9 +196,12 @@ public class ControllerCalibrationScreen extends Screen { private void onLaterButtonPress() { if (!calibrated) { - controller.config().delayedCalibration = true; - Controlify.instance().config().setDirty(); - Controlify.instance().setCurrentController(null); + if (!controller.config().deadzonesCalibrated) { + controller.config().delayedCalibration = true; + Controlify.instance().config().setDirty(); + Controlify.instance().setCurrentController(null); + } + onClose(); } }