aboutsummaryrefslogtreecommitdiffhomepage
path: root/source/Core
diff options
context:
space:
mode:
authorneon12345 <[email protected]>2024-07-31 13:28:26 +0200
committerGitHub <[email protected]>2024-07-31 13:28:26 +0200
commit6a2f2dc3449f4f0b5d0a6662880daeef25348c5e (patch)
tree1a83ba782544955abf743bf28d7399c5301fc3a5 /source/Core
parent80217efd38e378c4921c1d6be6975a9f6e306666 (diff)
downloadIronOS-6a2f2dc3449f4f0b5d0a6662880daeef25348c5e.tar.gz
IronOS-6a2f2dc3449f4f0b5d0a6662880daeef25348c5e.zip
Update Soldering.cpp
optimize lock/unlock display information
Diffstat (limited to 'source/Core')
-rw-r--r--source/Core/Threads/UI/logic/Soldering.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp
index f4406c91..93be8841 100644
--- a/source/Core/Threads/UI/logic/Soldering.cpp
+++ b/source/Core/Threads/UI/logic/Soldering.cpp
@@ -21,6 +21,8 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt)
if (warnUser(translatedString(Tr->UnlockingKeysString), buttons)) {
cxt->scratch_state.state1 = 1;
}
+ } else {
+ warnUser(translatedString(Tr->WarningKeysLockedString), buttons);
}
break;
case BUTTON_NONE:
@@ -54,10 +56,15 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt)
cxt->transitionMode = TransitionAnimation::Left;
return OperatingMode::TemperatureAdjust;
case BUTTON_BOTH_LONG:
- if (getSettingValue(SettingsOptions::LockingMode) && warnUser(translatedString(Tr->LockingKeysString), buttons)) {
+ if (getSettingValue(SettingsOptions::LockingMode)) {
// Lock buttons
if (cxt->scratch_state.state1 == 0) {
- cxt->scratch_state.state1 = 2;
+ if (warnUser(translatedString(Tr->LockingKeysString), buttons)) {
+ cxt->scratch_state.state1 = 2;
+ }
+ } else {
+ // FIXME should be WarningKeysUnlockedString
+ warnUser(translatedString(Tr->UnlockingKeysString), buttons);
}
}
break;