Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
overtake committed Jun 22, 2024
1 parent 7c96329 commit a323eaf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Telegram-Mac/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>264842</string>
<string>264844</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
Expand Down
19 changes: 11 additions & 8 deletions Telegram-Mac/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,11 @@ final class UpdateTabController: GenericViewController<UpdateTabView> {

override func updateLocalizationAndTheme(theme: PresentationTheme) {
super.updateLocalizationAndTheme(theme: theme)
#if !APP_STORE
let item = self.appcastItem
self.appcastItem = item
#endif

}

func updateLayout(_ layout: SplitViewState, parentSize: NSSize, isChatList: Bool) {
Expand Down Expand Up @@ -330,9 +333,9 @@ class MainViewController: TelegramViewController {
addSubview(self.tabController.view)

if !context.isSupport {
#if !APP_STORE
//#if !APP_STORE
addSubview(updateController.view)
#endif
//#endif
}

tabController.add(tab: TabItem(image: theme.icons.tab_contacts, selectedImage: theme.icons.tab_contacts_active, controller: contacts))
Expand All @@ -359,9 +362,9 @@ class MainViewController: TelegramViewController {
return
}
self.tabController.hideTabView(state == .minimisize)
#if !APP_STORE
//#if !APP_STORE
self.updateController.updateLayout(state, parentSize: self.frame.size, isChatList: true)
#endif
//#endif
}))

tabController.didChangedIndex = { [weak self] index in
Expand Down Expand Up @@ -546,9 +549,9 @@ class MainViewController: TelegramViewController {


let theme = (theme as! TelegramPresentationTheme)
#if !APP_STORE
//#if !APP_STORE
updateController.updateLocalizationAndTheme(theme: theme)
#endif
//#endif

updateTabsIfNeeded()
self.tabController.view.needsLayout = true
Expand Down Expand Up @@ -740,9 +743,9 @@ class MainViewController: TelegramViewController {
self.phoneCalls = RecentCallsViewController(context)
self.navigation = NavigationViewController(self.chatList, context.window)

#if !APP_STORE
//#if !APP_STORE
updateController = UpdateTabController(context.sharedContext)
#endif
//#endif
super.init(context)
}

Expand Down
2 changes: 1 addition & 1 deletion TelegramShare/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>264842</string>
<string>264844</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit a323eaf

Please sign in to comment.