mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-11-01 07:20:23 +00:00
Add a 'Copy' context menu to the QRCode window.
This commit is contained in:
@@ -71,4 +71,11 @@
|
||||
return scaledImage;
|
||||
}
|
||||
|
||||
- (IBAction) copyQRCode: (id) sender{
|
||||
NSPasteboard *pasteboard = [NSPasteboard generalPasteboard];
|
||||
[pasteboard clearContents];
|
||||
NSArray *copiedObjects = [NSArray arrayWithObject: self.imageView.image];
|
||||
[pasteboard writeObjects:copiedObjects];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user