[studio] Fix DeleteConfirmation 'No' option to not delete file
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (push) Successful in 3m22s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (push) Successful in 3m22s
				
			This commit is contained in:
		@@ -43,9 +43,16 @@ void DeleteConfirmation::draw(StudioContext &ctx) noexcept {
 | 
			
		||||
		case Stage::Open:
 | 
			
		||||
			drawWindow(ctx.tctx, m_open, [this] {
 | 
			
		||||
				ImGui::Text("Are you sure you want to delete %s?", m_path.c_str());
 | 
			
		||||
				if (ig::PopupControlsOkCancel(m_open, "Yes", "No") != ig::PopupResponse::None) {
 | 
			
		||||
					deleteFile.emit(m_path);
 | 
			
		||||
					close();
 | 
			
		||||
				switch (ig::PopupControlsOkCancel(m_open, "Yes", "No")) {
 | 
			
		||||
					case ig::PopupResponse::None:
 | 
			
		||||
						break;
 | 
			
		||||
					case ig::PopupResponse::OK:
 | 
			
		||||
						deleteFile.emit(m_path);
 | 
			
		||||
						close();
 | 
			
		||||
						break;
 | 
			
		||||
					case ig::PopupResponse::Cancel:
 | 
			
		||||
						close();
 | 
			
		||||
						break;
 | 
			
		||||
				}
 | 
			
		||||
			});
 | 
			
		||||
			break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user