Skip to content

Commit 20a4a42

Browse files
committed
- bugfixes
1 parent f3fb584 commit 20a4a42

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎Telegram-Mac/MainViewController.swift

+5-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import KeyboardKey
1616

1717
#if !APP_STORE
1818
import Sparkle
19+
#endif
20+
1921
enum UpdateButtonState {
2022
case common
2123
case important
@@ -152,6 +154,7 @@ final class UpdateTabController: GenericViewController<UpdateTabView> {
152154
}
153155
private var parentSize: NSSize = .zero
154156
private let stateDisposable = MetaDisposable()
157+
#if !APP_STORE
155158
private var appcastItem: SUAppcastItem? {
156159
didSet {
157160

@@ -184,7 +187,7 @@ final class UpdateTabController: GenericViewController<UpdateTabView> {
184187
// self.updateLayout(self.context.layout, parentSize: parentSize, isChatList: true)
185188
}
186189
}
187-
190+
#endif
188191
init(_ context: SharedAccountContext) {
189192
self.context = context
190193
super.init()
@@ -199,7 +202,7 @@ final class UpdateTabController: GenericViewController<UpdateTabView> {
199202
genericView.set(background: theme.colors.grayForeground, for: .Normal)
200203
genericView.isHidden = true
201204

202-
#if true
205+
#if APP_STORE
203206

204207
let signal = Signal<Void, NoError>.single(Void()) |> then(.single(Void()) |> delay(24 * 60 * 60, queue: .mainQueue()) |> restart)
205208

@@ -274,7 +277,6 @@ final class UpdateTabController: GenericViewController<UpdateTabView> {
274277
}
275278
}
276279

277-
#endif
278280

279281
class MainViewController: TelegramViewController {
280282

0 commit comments

Comments
 (0)