Set progress label to "Optimizing…" when optimising.
This commit is contained in:
6 files changed
+39
-11
No files matched your search
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14087.3" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14092" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14087.3"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14092"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -159,7 +159,10 @@ import IOKit.pwr_mgt
|
||||
}
|
||||
|
||||
if optimize {
|
||||
// TODO: Update progress string
|
||||
DispatchQueue.main.async {
|
||||
let docController = self.windowControllers.first as? DocumentWindowController
|
||||
docController?.setProgress(title: NSLocalizedString("Optimizing…", comment: "Document Optimize sheet."))
|
||||
}
|
||||
mp4.optimize()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -244,6 +244,13 @@ class DocumentWindowController: NSWindowController, TracksViewControllerDelegate
|
||||
}
|
||||
}
|
||||
|
||||
func setProgress(title: String) {
|
||||
if let progressController = self.progressController {
|
||||
progressController.progressString.stringValue = title
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func endProgressReporting() {
|
||||
if let progressController = self.progressController {
|
||||
contentViewController?.dismissViewController(progressController)
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
A956CE691F99E93D00093992 /* ButtonToolbarItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = A956CE681F99E93D00093992 /* ButtonToolbarItem.swift */; };
|
||||
A956CE6B1F99EAAD00093992 /* Logger.swift in Sources */ = {isa = PBXBuildFile; fileRef = A956CE6A1F99EAAD00093992 /* Logger.swift */; };
|
||||
A959001A202AF21800FD8F23 /* ProgressViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9590018202AF21800FD8F23 /* ProgressViewController.swift */; };
|
||||
A959001B202AF21800FD8F23 /* ProgressViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9590019202AF21800FD8F23 /* ProgressViewController.xib */; };
|
||||
A95B8DA91B09F37800F2F152 /* Subler_Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = A95B8DA81B09F37800F2F152 /* Subler_Tests.m */; };
|
||||
A961476313F567E10068F161 /* SBQueueController.m in Sources */ = {isa = PBXBuildFile; fileRef = A961476013F567E10068F161 /* SBQueueController.m */; };
|
||||
A961476713F568210068F161 /* Queue.xib in Resources */ = {isa = PBXBuildFile; fileRef = A961476513F568210068F161 /* Queue.xib */; };
|
||||
@@ -70,6 +69,8 @@
|
||||
A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A997B0A91F348AB000974C9C /* MetadataSearchController.swift */; };
|
||||
A998DABF1BA54CFF004D7969 /* SBMediaTagsController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A998DABD1BA54CFF004D7969 /* SBMediaTagsController.xib */; };
|
||||
A99D23212029CD32002E7F27 /* PrefsWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99D23202029CD32002E7F27 /* PrefsWindow.swift */; };
|
||||
A9A4A966202F51FA00482D12 /* SaveOptions.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9A4A968202F51FA00482D12 /* SaveOptions.xib */; };
|
||||
A9A4A96B202F51FF00482D12 /* ProgressViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9A4A96D202F51FF00482D12 /* ProgressViewController.xib */; };
|
||||
A9A77C4E1F306FA70018023B /* AttributedStyles.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A77C4D1F306FA70018023B /* AttributedStyles.swift */; };
|
||||
A9A8CEF91E43754400BC2AE1 /* SBQueueScriptCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = A9A8CEF81E43754400BC2AE1 /* SBQueueScriptCommand.m */; };
|
||||
A9A91B5D1FB6FBB700250D93 /* ChapterViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9A91B5C1FB6FBB700250D93 /* ChapterViewController.swift */; };
|
||||
@@ -103,7 +104,6 @@
|
||||
A9CBAB1E1F29C083001C26B3 /* MetadataImporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */; };
|
||||
A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9D4B8651C05BD04007845C4 /* SBChapterSearch.xib */; };
|
||||
A9D64527202CA92400BA172B /* SaveOptions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D64525202CA92400BA172B /* SaveOptions.swift */; };
|
||||
A9D64528202CA92400BA172B /* SaveOptions.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9D64526202CA92400BA172B /* SaveOptions.xib */; };
|
||||
A9D73C5218BF3F1100C6FFA6 /* SBQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */; };
|
||||
A9DA3B9C1B918D5C00F1E40C /* SBApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = A9DA3B991B918D5C00F1E40C /* SBApplication.m */; };
|
||||
A9DA3BA31B918D6F00F1E40C /* ExceptionAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9DA3BA11B918D6F00F1E40C /* ExceptionAlert.xib */; };
|
||||
@@ -242,7 +242,6 @@
|
||||
A956CE681F99E93D00093992 /* ButtonToolbarItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ButtonToolbarItem.swift; path = Classes/ButtonToolbarItem.swift; sourceTree = "<group>"; };
|
||||
A956CE6A1F99EAAD00093992 /* Logger.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = Logger.swift; path = Classes/Logger.swift; sourceTree = "<group>"; };
|
||||
A9590018202AF21800FD8F23 /* ProgressViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ProgressViewController.swift; path = Classes/ProgressViewController.swift; sourceTree = "<group>"; };
|
||||
A9590019202AF21800FD8F23 /* ProgressViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ProgressViewController.xib; path = Classes/ProgressViewController.xib; sourceTree = "<group>"; };
|
||||
A95B8DA41B09F37700F2F152 /* Subler Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Subler Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A95B8DA71B09F37700F2F152 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
A95B8DA81B09F37800F2F152 /* Subler_Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Subler_Tests.m; sourceTree = "<group>"; };
|
||||
@@ -271,6 +270,8 @@
|
||||
A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterSearchController.swift; path = Classes/ChapterSearchController.swift; sourceTree = "<group>"; };
|
||||
A997B0A91F348AB000974C9C /* MetadataSearchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataSearchController.swift; path = Classes/MetadataSearchController.swift; sourceTree = "<group>"; };
|
||||
A99D23202029CD32002E7F27 /* PrefsWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PrefsWindow.swift; path = Classes/PrefsWindow.swift; sourceTree = "<group>"; };
|
||||
A9A4A967202F51FA00482D12 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SaveOptions.xib; sourceTree = "<group>"; };
|
||||
A9A4A96C202F51FF00482D12 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ProgressViewController.xib; sourceTree = "<group>"; };
|
||||
A9A77C4D1F306FA70018023B /* AttributedStyles.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AttributedStyles.swift; path = Classes/AttributedStyles.swift; sourceTree = "<group>"; };
|
||||
A9A8CEF71E43754400BC2AE1 /* SBQueueScriptCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueueScriptCommand.h; path = Classes/SBQueueScriptCommand.h; sourceTree = "<group>"; };
|
||||
A9A8CEF81E43754400BC2AE1 /* SBQueueScriptCommand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueueScriptCommand.m; path = Classes/SBQueueScriptCommand.m; sourceTree = "<group>"; };
|
||||
@@ -326,7 +327,6 @@
|
||||
A9C828F4195950C3004C4718 /* SBQueuePreferences.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueuePreferences.m; path = Classes/SBQueuePreferences.m; sourceTree = "<group>"; };
|
||||
A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataImporter.swift; path = Classes/MetadataImporters/MetadataImporter.swift; sourceTree = "<group>"; };
|
||||
A9D64525202CA92400BA172B /* SaveOptions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SaveOptions.swift; path = Classes/SaveOptions.swift; sourceTree = "<group>"; };
|
||||
A9D64526202CA92400BA172B /* SaveOptions.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = SaveOptions.xib; path = Classes/SaveOptions.xib; sourceTree = "<group>"; };
|
||||
A9D73C5018BF3F1100C6FFA6 /* SBQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueue.h; path = Classes/SBQueue.h; sourceTree = "<group>"; };
|
||||
A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueue.m; path = Classes/SBQueue.m; sourceTree = "<group>"; };
|
||||
A9DA3B991B918D5C00F1E40C /* SBApplication.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBApplication.m; path = Classes/SBApplication.m; sourceTree = "<group>"; };
|
||||
@@ -614,9 +614,9 @@
|
||||
A9ECA0512029948900D5F30C /* OffsetViewController.swift */,
|
||||
A9ECA0622029A13800D5F30C /* OffsetViewController.xib */,
|
||||
A9590018202AF21800FD8F23 /* ProgressViewController.swift */,
|
||||
A9590019202AF21800FD8F23 /* ProgressViewController.xib */,
|
||||
A9A4A96D202F51FF00482D12 /* ProgressViewController.xib */,
|
||||
A9D64525202CA92400BA172B /* SaveOptions.swift */,
|
||||
A9D64526202CA92400BA172B /* SaveOptions.xib */,
|
||||
A9A4A968202F51FA00482D12 /* SaveOptions.xib */,
|
||||
A962D9ED1F8B7F9F00802EEF /* FileImportController.swift */,
|
||||
A93105351F9758EC00605146 /* FileImportController.xib */,
|
||||
A9E932A61F34D31D00B1790B /* ArtworkSelector.swift */,
|
||||
@@ -813,7 +813,7 @@
|
||||
A9B46AA412B79BB10040517A /* Subler.icns in Resources */,
|
||||
CD71FEA612F1B62600F0A98D /* MetadataSearch.xib in Resources */,
|
||||
A90CD5C01FD177230070A067 /* TokensViewController.xib in Resources */,
|
||||
A959001B202AF21800FD8F23 /* ProgressViewController.xib in Resources */,
|
||||
A9A4A96B202F51FF00482D12 /* ProgressViewController.xib in Resources */,
|
||||
CD4E6E5D12F744210095C84F /* ArtworkSelector.xib in Resources */,
|
||||
61CEC0CE1E7569E4000FECC1 /* MultiSelectView.xib in Resources */,
|
||||
A9BC410818D9ABC000F8C92C /* QueueItem.xib in Resources */,
|
||||
@@ -828,7 +828,7 @@
|
||||
A924A51E1D4B9E93008301A7 /* SBMetadataPrefsViewController.xib in Resources */,
|
||||
A92BBABE1F5584EA007EA182 /* PresetEditorViewController.xib in Resources */,
|
||||
A90CD5C51FD177280070A067 /* OutputPrefsViewController.xib in Resources */,
|
||||
A9D64528202CA92400BA172B /* SaveOptions.xib in Resources */,
|
||||
A9A4A966202F51FA00482D12 /* SaveOptions.xib in Resources */,
|
||||
A94A6A591ED1C5CC00049F7D /* ParseFilename in Resources */,
|
||||
A9ECA05D2029A11500D5F30C /* DetailsViewController.xib in Resources */,
|
||||
);
|
||||
@@ -1065,6 +1065,24 @@
|
||||
name = SBMediaTagsController.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9A4A968202F51FA00482D12 /* SaveOptions.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A9A4A967202F51FA00482D12 /* Base */,
|
||||
);
|
||||
name = SaveOptions.xib;
|
||||
path = Classes;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9A4A96D202F51FF00482D12 /* ProgressViewController.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A9A4A96C202F51FF00482D12 /* Base */,
|
||||
);
|
||||
name = ProgressViewController.xib;
|
||||
path = Classes;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9AB485A17F0AEFD000AA72E /* ChapterView.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
|
||||
Reference in new issue
Block a user