-
Notifications
You must be signed in to change notification settings - Fork 86
chore: don't enforce the HomePage as the start section #18672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -701,6 +701,8 @@ method load*[T]( | |
enabled = true, | ||
) | ||
self.view.model().addItem(homePageSectionItem) | ||
if activeSectionId == homePageSectionItem.id: | ||
activeSection = homePageSectionItem | ||
|
||
# Communities Portal Section | ||
let communitiesPortalSectionItem = initSectionItem( | ||
|
@@ -863,8 +865,9 @@ method load*[T]( | |
self.marketModule.load() | ||
|
||
# If the home page is enabled, we default to it as the opening section | ||
if homePageEnabled: | ||
activeSection = homePageSectionItem | ||
# (disabled for 2.35 as per https://github.com/status-im/status-desktop/issues/18664, revisit after) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disabled the part where we enforced the HomePage There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought we can just set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm no, we're not disabling the HomePage here, we're just restoring the old behavior where the last used section is remembered on the next app start |
||
#if homePageEnabled: | ||
# activeSection = homePageSectionItem | ||
|
||
# Set active section on app start | ||
# If section is empty or profile wait until chats are loaded | ||
|
@@ -979,8 +982,8 @@ method onChatsLoaded*[T]( | |
|
||
self.events.emit(SIGNAL_MAIN_LOADED, Args()) | ||
|
||
# Set active section if it is one of the channel sections and the home page is not enabled | ||
if not singletonInstance.featureFlags().getHomePageEnabled() and not activeSection.isEmpty(): | ||
caybro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Set active section if it is one of the channel sections | ||
if not activeSection.isEmpty(): | ||
self.setActiveSection(activeSection) | ||
|
||
self.view.sectionsLoaded() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remembering the HomePage as any other section