Skip to content

Commit

Permalink
Merge pull request #81 from AKORA-Studios/#76-dont-show-whats-new-scr…
Browse files Browse the repository at this point in the history
…een-on-first-launch

refactor whatsnew popup ig
  • Loading branch information
DragonCat4012 authored Jan 6, 2024
2 parents d2255d1 + 9db0b4f commit 917ab9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Calq/lib/Util/Util.swift
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,12 @@ struct Util {
}

static func checkIfNewVersion() -> Bool {
let oldVersion = UserDefaults.standard.string(forKey: UD_lastVersion) ?? "0.0.0"
if oldVersion == "0.0.0" { return true }
let oldVersion = UserDefaults.standard.string(forKey: UD_lastVersion)

guard let oldVersion = oldVersion else {
return true
}

let partsOldV = oldVersion.split(separator: ".")
let partsNewV = appVersion.split(separator: ".")

Expand Down

0 comments on commit 917ab9e

Please sign in to comment.