mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	fix conversion warnings
This commit is contained in:
		
							parent
							
								
									4564fc5baa
								
							
						
					
					
						commit
						5b181976ce
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -931,6 +931,7 @@ void GMainWindow::OnMenuInstallCIA() { | ||||||
| 
 | 
 | ||||||
|     ui.action_Install_CIA->setEnabled(false); |     ui.action_Install_CIA->setEnabled(false); | ||||||
|     progress_bar->show(); |     progress_bar->show(); | ||||||
|  |     progress_bar->setMaximum(INT_MAX); | ||||||
| 
 | 
 | ||||||
|     QtConcurrent::run([&, filepaths] { |     QtConcurrent::run([&, filepaths] { | ||||||
|         QString current_path; |         QString current_path; | ||||||
|  | @ -948,8 +949,8 @@ void GMainWindow::OnMenuInstallCIA() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void GMainWindow::OnUpdateProgress(size_t written, size_t total) { | void GMainWindow::OnUpdateProgress(size_t written, size_t total) { | ||||||
|     progress_bar->setMaximum(total); |     progress_bar->setValue( | ||||||
|     progress_bar->setValue(written); |         static_cast<int>(INT_MAX * (static_cast<double>(written) / static_cast<double>(total)))); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void GMainWindow::OnCIAInstallReport(Service::AM::InstallStatus status, QString filepath) { | void GMainWindow::OnCIAInstallReport(Service::AM::InstallStatus status, QString filepath) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue