1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 03:50:08 +02:00

👌 Fix warnings

This commit is contained in:
2022-10-21 18:19:31 +02:00
parent ac2184ba97
commit 04ed29bc9f
2 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ extension MainMenu {
Schedule a request to fetch the PHP version every 60 seconds.
*/
private func startSharedTimer() {
Task { @MainActor [self] in
DispatchQueue.main.async { [self] in
App.shared.timer = Timer.scheduledTimer(
timeInterval: 60,
target: self,

View File

@ -12,9 +12,9 @@ extension MainMenu {
// MARK: - PhpSwitcherDelegate
func switcherDidStartSwitching(to version: String) {}
nonisolated func switcherDidStartSwitching(to version: String) {}
func switcherDidCompleteSwitch(to version: String) {
nonisolated func switcherDidCompleteSwitch(to version: String) {
// Mark as no longer busy
PhpEnv.shared.isBusy = false