sim: wake up screen (delete label) when screen off on new Notification
Get the system into the running state again, when the `n` button is pressed for a new notification. Otherwise the simulation freezes
This commit is contained in:
		
							parent
							
								
									ac5a04ee9d
								
							
						
					
					
						commit
						c6b1f0f74b
					
				
							
								
								
									
										4
									
								
								main.cpp
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								main.cpp
									
									
									
									
									
								
							@ -591,6 +591,10 @@ public:
 | 
			
		||||
      }
 | 
			
		||||
      if (settingsController.GetNotificationStatus() == Pinetime::Controllers::Settings::Notification::On)
 | 
			
		||||
      {
 | 
			
		||||
        if (screen_off_created) {
 | 
			
		||||
          // wake up! (deletes screen_off label)
 | 
			
		||||
          systemTask.PushMessage(Pinetime::System::Messages::GoToRunning);
 | 
			
		||||
        }
 | 
			
		||||
        displayApp.PushMessage(Pinetime::Applications::Display::Messages::NewNotification);
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user