Improved ProgressIndicator
This commit is contained in:
@@ -149,7 +149,7 @@ class Document: NSDocument {
|
||||
window.days = self.days[i]
|
||||
self.pdfWindows[i] = (window.window?.contentView?.dataWithPDF(inside: (window.window?.contentView?.bounds)!))!
|
||||
DispatchQueue.main.async {
|
||||
self.exportProgress.increment(by: 100/12)
|
||||
self.exportProgress.increment(by: 100/13)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -163,8 +163,10 @@ class Document: NSDocument {
|
||||
context.endPDFPage()
|
||||
}
|
||||
context.closePDF()
|
||||
|
||||
data.write(to: savePanel.url!, atomically: true)
|
||||
DispatchQueue.main.async {
|
||||
self.exportProgress.increment(by: 100/13)
|
||||
}
|
||||
pthread_mutex_lock(&(NSApp.delegate as! AppDelegate).lock)
|
||||
self.pdfBegin = false
|
||||
pthread_mutex_unlock(&(NSApp.delegate as! AppDelegate).lock)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>411</string>
|
||||
<string>414</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version 2.0
|
||||
build 411
|
||||
build 414
|
||||
|
||||
Reference in New Issue
Block a user