Allow downloading new posts only if the running indicator is not running
This commit is contained in:
		
					parent
					
						
							
								d9db707e7c
							
						
					
				
			
			
				commit
				
					
						65ec42d0de
					
				
			
		
					 1 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -231,7 +231,15 @@ Rectangle {
 | 
			
		|||
 | 
			
		||||
            onAtYEndChanged: {
 | 
			
		||||
 | 
			
		||||
                if (grid.atYEnd && danbooruModel.rowCount() > 0 && !rootObj.poolMode && infiniteScroll) {
 | 
			
		||||
                // Download only if at end, if there are posts, if
 | 
			
		||||
                // we are not displaying a pool, if the option is set
 | 
			
		||||
                // and if we're not already downloading something
 | 
			
		||||
 | 
			
		||||
                if (grid.atYEnd && danbooruModel.rowCount() > 0 &&
 | 
			
		||||
                    !rootObj.poolMode &&
 | 
			
		||||
                    infiniteScroll &&
 | 
			
		||||
                    !runningIndicator.running) {
 | 
			
		||||
 | 
			
		||||
                    rootObj.downloadStarted()
 | 
			
		||||
                    danbooruService.nextPostPage();
 | 
			
		||||
                }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue