focalboard/mac/Focalboard/Globals.swift

21 lines
615 B
Swift
Raw Normal View History

2021-04-12 14:02:22 -07:00
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import Foundation
2022-06-22 16:44:20 -07:00
import Cocoa
2021-04-12 14:02:22 -07:00
class Globals {
2022-05-11 17:25:46 -06:00
static let ProductVersion = 70000
2022-06-22 16:44:20 -07:00
static let WhatsNewVersion = 70000
2021-04-12 14:02:22 -07:00
static var currentWhatsNewVersion: Int {
get { return UserDefaults.standard.integer(forKey: "whatsNewVersion") }
set { UserDefaults.standard.setValue(newValue, forKey: "whatsNewVersion") }
}
2022-06-22 16:44:20 -07:00
static func openGetCloudServerUrl() {
let url = URL(string: "https://mattermost.com/sign-up/?utm_source=focalboard&utm_campaign=focalboardapp")!
NSWorkspace.shared.open(url)
}
2021-04-12 14:02:22 -07:00
}