From f39aaefde937c3adaa777630e1458babdb176113 Mon Sep 17 00:00:00 2001 From: fanyu Date: Tue, 16 Aug 2022 10:37:24 +0800 Subject: [PATCH] Apply code style --- .../Windows/SelectedPhotoInputItemsPreviewWindow.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Mixin/UserInterface/Windows/SelectedPhotoInputItemsPreviewWindow.swift b/Mixin/UserInterface/Windows/SelectedPhotoInputItemsPreviewWindow.swift index 7059c2503f..c84429516b 100644 --- a/Mixin/UserInterface/Windows/SelectedPhotoInputItemsPreviewWindow.swift +++ b/Mixin/UserInterface/Windows/SelectedPhotoInputItemsPreviewWindow.swift @@ -47,28 +47,28 @@ final class SelectedPhotoInputItemsPreviewWindow: BottomSheetView { } } - override func dismissPopupControllerAnimated() { + override func dismissPopupController(animated: Bool) { if !isSending { delegate?.selectedPhotoInputItemsPreviewWindow(self, willDismissWindow: selectedAssets) } - super.dismissPopupControllerAnimated() + super.dismissPopupController(animated: animated) } @IBAction func closeAction(_ sender: Any) { isSending = false - dismissPopupControllerAnimated() + dismissPopupController(animated: true) } @IBAction func sendPhotosAction(_ sender: Any) { isSending = true delegate?.selectedPhotoInputItemsPreviewWindow(self, didTapSendItems: selectedAssets) - dismissPopupControllerAnimated() + dismissPopupController(animated: true) } @IBAction func sendAsFilesAction(_ sender: Any) { isSending = true delegate?.selectedPhotoInputItemsPreviewWindow(self, didTapSendFiles: selectedAssets) - dismissPopupControllerAnimated() + dismissPopupController(animated: true) } func load(assets: [PHAsset], initIndex: Int) {