Skip to content

Commit

Permalink
Fix more build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Arclite committed Dec 2, 2024
1 parent 23d622a commit 09f1533
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extension PhotoEditingViewController {
clearHasMadeEdits()

Defaults.numberOfSaves += 1
AppRatingsPrompter().displayRatingsPrompt(in: view.window?.windowScene)
await AppRatingsPrompter().displayRatingsPrompt(in: view.window?.windowScene)
} catch {
ErrorHandler().log(error)
}
Expand All @@ -45,7 +45,9 @@ extension PhotoEditingViewController {
guard let self else { return }
let temporaryURL = try await preparedURL
let saveViewController = DesktopSaveViewController(url: temporaryURL) { [weak self] urls in
AppRatingsPrompter().displayRatingsPrompt(in: self?.view.window?.windowScene)
Task {
await AppRatingsPrompter().displayRatingsPrompt(in: self?.view.window?.windowScene)
}
if let exportURL = urls.first {
self?.fileURLProvider?.updateRepresentedFileURL(to: exportURL)
}
Expand Down
4 changes: 2 additions & 2 deletions Modules/Legacy/Core/Sources/Scene/DesktopSceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class DesktopSceneDelegate: NSObject, UIWindowSceneDelegate, NSToolbarDelegate,

func didExportImage() {
Defaults.numberOfSaves = Defaults.numberOfSaves + 1
DispatchQueue.main.async { [weak self] in
AppRatingsPrompter().displayRatingsPrompt(in: self?.window?.windowScene)
Task { [weak self] in
await AppRatingsPrompter().displayRatingsPrompt(in: self?.window?.windowScene)
}
}

Expand Down

0 comments on commit 09f1533

Please sign in to comment.