File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import KeyboardKey
16
16
17
17
#if !APP_STORE
18
18
import Sparkle
19
+ #endif
20
+
19
21
enum UpdateButtonState {
20
22
case common
21
23
case important
@@ -152,6 +154,7 @@ final class UpdateTabController: GenericViewController<UpdateTabView> {
152
154
}
153
155
private var parentSize : NSSize = . zero
154
156
private let stateDisposable = MetaDisposable ( )
157
+ #if !APP_STORE
155
158
private var appcastItem : SUAppcastItem ? {
156
159
didSet {
157
160
@@ -184,7 +187,7 @@ final class UpdateTabController: GenericViewController<UpdateTabView> {
184
187
// self.updateLayout(self.context.layout, parentSize: parentSize, isChatList: true)
185
188
}
186
189
}
187
-
190
+ #endif
188
191
init ( _ context: SharedAccountContext ) {
189
192
self . context = context
190
193
super. init ( )
@@ -199,7 +202,7 @@ final class UpdateTabController: GenericViewController<UpdateTabView> {
199
202
genericView. set ( background: theme. colors. grayForeground, for: . Normal)
200
203
genericView. isHidden = true
201
204
202
- #if true
205
+ #if APP_STORE
203
206
204
207
let signal = Signal < Void , NoError > . single ( Void ( ) ) |> then ( . single( Void ( ) ) |> delay ( 24 * 60 * 60 , queue: . mainQueue( ) ) |> restart)
205
208
@@ -274,7 +277,6 @@ final class UpdateTabController: GenericViewController<UpdateTabView> {
274
277
}
275
278
}
276
279
277
- #endif
278
280
279
281
class MainViewController : TelegramViewController {
280
282
You can’t perform that action at this time.
0 commit comments