Merge pull request #659 from hokein/master
mac: Fix dock progress bar doesn't show after hiding, fixes #658.
This commit is contained in:
		
				commit
				
					
						50ea0f0b45
					
				
			
		
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -576,8 +576,11 @@ void NativeWindowMac::SetProgressBar(double progress) { | ||||||
|   if (progress < 0) { |   if (progress < 0) { | ||||||
|     [progress_indicator setHidden:YES]; |     [progress_indicator setHidden:YES]; | ||||||
|   } else if (progress > 1) { |   } else if (progress > 1) { | ||||||
|  |     [progress_indicator setHidden:NO]; | ||||||
|     [progress_indicator setIndeterminate:YES]; |     [progress_indicator setIndeterminate:YES]; | ||||||
|  |     [progress_indicator setDoubleValue:1]; | ||||||
|   } else { |   } else { | ||||||
|  |     [progress_indicator setHidden:NO]; | ||||||
|     [progress_indicator setDoubleValue:progress]; |     [progress_indicator setDoubleValue:progress]; | ||||||
|   } |   } | ||||||
|   [dock_tile display]; |   [dock_tile display]; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cheng Zhao
				Cheng Zhao