2021-04-12 23:02:22 +02:00
|
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
|
|
// See LICENSE.txt for license information.
|
|
|
|
|
|
|
|
import Foundation
|
2022-06-23 01:44:20 +02:00
|
|
|
import Cocoa
|
2021-04-12 23:02:22 +02:00
|
|
|
|
|
|
|
class Globals {
|
2022-05-12 01:25:46 +02:00
|
|
|
static let ProductVersion = 70000
|
2022-06-23 01:44:20 +02:00
|
|
|
static let WhatsNewVersion = 70000
|
2021-04-12 23:02:22 +02:00
|
|
|
|
|
|
|
static var currentWhatsNewVersion: Int {
|
|
|
|
get { return UserDefaults.standard.integer(forKey: "whatsNewVersion") }
|
|
|
|
set { UserDefaults.standard.setValue(newValue, forKey: "whatsNewVersion") }
|
|
|
|
}
|
2022-06-23 01:44:20 +02: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 23:02:22 +02:00
|
|
|
}
|