mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2026-04-06 03:00:07 +02:00
👌 Fix warnings
This commit is contained in:
@@ -145,7 +145,7 @@ extension MainMenu {
|
|||||||
Schedule a request to fetch the PHP version every 60 seconds.
|
Schedule a request to fetch the PHP version every 60 seconds.
|
||||||
*/
|
*/
|
||||||
private func startSharedTimer() {
|
private func startSharedTimer() {
|
||||||
Task { @MainActor [self] in
|
DispatchQueue.main.async { [self] in
|
||||||
App.shared.timer = Timer.scheduledTimer(
|
App.shared.timer = Timer.scheduledTimer(
|
||||||
timeInterval: 60,
|
timeInterval: 60,
|
||||||
target: self,
|
target: self,
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ extension MainMenu {
|
|||||||
|
|
||||||
// MARK: - PhpSwitcherDelegate
|
// 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
|
// Mark as no longer busy
|
||||||
PhpEnv.shared.isBusy = false
|
PhpEnv.shared.isBusy = false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user