mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-14 16:57:26 -04:00
OSHelper: file preselection support (Windows and Mac)
Co-authored-by: selsta <selsta@sent.at>
This commit is contained in:
@@ -47,3 +47,11 @@ bool MacOSHelper::isCapsLock()
|
||||
return (flags & NSAlphaShiftKeyMask);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool MacOSHelper::openFolderAndSelectItem(const QUrl &path)
|
||||
{
|
||||
NSURL *nspath = path.toNSURL();
|
||||
NSArray *fileURLs = [NSArray arrayWithObjects:nspath, nil];
|
||||
[[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:fileURLs];
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user