mirror of
				https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
				synced 2025-11-04 02:53:08 +00:00 
			
		
		
		
	Module Client, clss FrameManager : ajout d'un synchronized pour éviter les accès concurentiels
This commit is contained in:
		@@ -57,7 +57,7 @@ public class FrameManager {
 | 
				
			|||||||
        return () -> Platform.runLater(()->trySwitchScene(stage, startupFrameScene, false));
 | 
					        return () -> Platform.runLater(()->trySwitchScene(stage, startupFrameScene, false));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private void trySwitchScene(Stage stage, FrameScene sceneToDisplay, boolean maximize){
 | 
					    private synchronized void trySwitchScene(Stage stage, FrameScene sceneToDisplay, boolean maximize){
 | 
				
			||||||
        if(sceneToDisplay!=null) {
 | 
					        if(sceneToDisplay!=null) {
 | 
				
			||||||
            stage.hide();
 | 
					            stage.hide();
 | 
				
			||||||
            stage.setScene(sceneToDisplay);
 | 
					            stage.setScene(sceneToDisplay);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user