-
Notifications
You must be signed in to change notification settings - Fork 82
fix(shell): fix chat being active in the background of the shell #18088
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
base: feat/expose-last-message
Are you sure you want to change the base?
fix(shell): fix chat being active in the background of the shell #18088
Conversation
@@ -167,7 +167,6 @@ QtObject: | |||
|
|||
proc activeSectionSet*(self: View, item: SectionItem) = | |||
self.activeSection.setActiveSectionData(item) | |||
self.activeSectionChanged() |
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.
This was useless. It just made it so that we called the update twice.
@@ -55,8 +55,7 @@ SplitView { | |||
} | |||
|
|||
Control { | |||
SplitView.minimumWidth: 78 | |||
SplitView.preferredWidth: 78 | |||
SplitView.preferredWidth: !!leftPanel && leftPanel.visible ? leftPanel.width : 0 |
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.
This is to keep the previous behaviour of the shell being full screen. IMO, it looks fine when the tabbar is still shown when the Shell is visible, but we can easily revert.
@@ -51,7 +51,8 @@ Control { | |||
spacing: Theme.bigPadding | |||
|
|||
function focusSearch() { | |||
searchField.forceActiveFocus() | |||
// Need to use Qt.callLater to ensure the focus is set after the component is fully loaded | |||
Qt.callLater(() => searchField.forceActiveFocus()) |
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.
Since the Shell is shown at the start for real now (loaded by the main module), it loaded too fast and the focus didn't apply
@@ -1819,6 +1808,93 @@ Item { | |||
// If we ever change stack layout component order we need to updade | |||
// Constants.appViewStackIndex accordingly | |||
|
|||
Loader { |
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.
I didn't really change anything here, just moved it in the StackLayout
Jenkins Builds
|
96fb531
to
f73e740
Compare
f73e740
to
98149ad
Compare
Fixes #18059 Fixes the issue by putting the Shell as part of the sections themselves. that way we ensure that no other section is active in the background for no reason. It simplifies the code a little since we no longer need a custom shell button
fc218ea
to
006e663
Compare
What does the PR do
Fixes #18059
Fixes the issue by putting the Shell as part of the sections themselves. that way we ensure that no other section is active in the background for no reason. It simplifies the code a little since we no longer need a custom shell button
Affected areas
Architecture compliance
My PR is consistent with this document: Status Desktop Architecture Guide
Screenshot of functionality (including design for comparison)
chat-in-background-shell.webm
Impact on end user
Fixes the issue of chat messages being marked as read even if not shown to the user. Nothing in the background when in the shell, so no risk of side effects
How to test
Risk
Tick one: