@@ -47,6 +47,8 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt)
4747 }
4848 return OperatingMode::Soldering;
4949 }
50+
51+ bool detailedView = getSettingValue (SettingsOptions::DetailedIDLE) && getSettingValue (SettingsOptions::DetailedSoldering);
5052 // otherwise we are unlocked
5153 switch (buttons) {
5254 case BUTTON_NONE :
@@ -56,7 +58,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt)
5658 case BUTTON_BOTH :
5759 /* Fall through*/
5860 case BUTTON_B_LONG :
59- cxt->transitionMode = TransitionAnimation::Right;
61+ cxt->transitionMode = detailedView ? TransitionAnimation::None : TransitionAnimation::Right;
6062 return OperatingMode::HomeScreen;
6163 case BUTTON_F_LONG :
6264 // if boost mode is enabled turn it on
@@ -142,18 +144,20 @@ OperatingMode gui_solderingMode(const ButtonState buttons, guiContext *cxt) {
142144 } else {
143145 ui_draw_soldering_basic_status (cxt->scratch_state .state2 );
144146 }
147+
148+ bool detailedView = getSettingValue (SettingsOptions::DetailedIDLE) && getSettingValue (SettingsOptions::DetailedSoldering);
145149 // Check if we should bail due to undervoltage for example
146150 if (checkExitSoldering ()) {
147151 setBuzzer (false );
148- cxt->transitionMode = TransitionAnimation::Right;
152+ cxt->transitionMode = detailedView ? TransitionAnimation::None : TransitionAnimation::Right;
149153 return OperatingMode::HomeScreen;
150154 }
151155#ifdef NO_SLEEP_MODE
152156
153157 if (shouldShutdown ()) {
154158 // shutdown
155159 currentTempTargetDegC = 0 ;
156- cxt->transitionMode = TransitionAnimation::Right;
160+ cxt->transitionMode = detailedView ? TransitionAnimation::None : TransitionAnimation::Right;
157161 return OperatingMode::HomeScreen;
158162 }
159163#endif
0 commit comments