mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-12 11:31:09 +00:00
Add email open for logging string sending
This commit is contained in:
1 parent
a2e3bf1603
commit
0614ab56cd
2 files changed
+10
-2
No files matched your search
@@ -112,6 +112,7 @@ struct LargeAppIconView<Content: View>: View {
|
||||
|
||||
if taps == 5 {
|
||||
let logString = LogManager.sharedInstance.getLogString()
|
||||
sendLoggingString(logString)
|
||||
copyToClipboard(logString)
|
||||
print("Copied log to clipboard")
|
||||
}
|
||||
@@ -129,6 +130,13 @@ struct LargeAppIconView<Content: View>: View {
|
||||
}
|
||||
|
||||
|
||||
func sendLoggingString(_ text: String) {
|
||||
if let url = URL(string: "mailto:quickdrop@leonboettger.com?subject=QuickDrop Log&body=\n\n\n––––––––––––––––––––\n\(text)") {
|
||||
NSWorkspace.shared.open(url)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func copyToClipboard(_ text: String) {
|
||||
let pasteboard = NSPasteboard.general
|
||||
pasteboard.clearContents()
|
||||
|
||||
@@ -785,7 +785,7 @@
|
||||
MTL_FAST_MATH = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = macosx;
|
||||
SHARED_BUILD = 26;
|
||||
SHARED_BUILD = 27;
|
||||
SHARED_VERSION = 1.7.1;
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
@@ -844,7 +844,7 @@
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
MTL_FAST_MATH = YES;
|
||||
SDKROOT = macosx;
|
||||
SHARED_BUILD = 26;
|
||||
SHARED_BUILD = 27;
|
||||
SHARED_VERSION = 1.7.1;
|
||||
SWIFT_COMPILATION_MODE = wholemodule;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-O";
|
||||
|
||||
Reference in new issue
Block a user