Fix Open With menu position in macOS.
This commit is contained in:
		
							parent
							
								
									7aa12b6e07
								
							
						
					
					
						commit
						cae7e9c502
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -403,7 +403,7 @@ bool UnsafeShowOpenWithDropdown(const QString &filepath, QPoint menuPosition) {
 | 
				
			||||||
		if (!screen) {
 | 
							if (!screen) {
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		const auto r = screen->availableGeometry();
 | 
							const auto r = screen->geometry();
 | 
				
			||||||
		auto x = menuPosition.x();
 | 
							auto x = menuPosition.x();
 | 
				
			||||||
		auto y = r.y() + r.height() - menuPosition.y();
 | 
							auto y = r.y() + r.height() - menuPosition.y();
 | 
				
			||||||
		return !![menu popupAtX:x andY:y];
 | 
							return !![menu popupAtX:x andY:y];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue