mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
settings: avoid race condition
fix inSettingsView flag toggle avoids infinite loops when coming back from settings menu with an incoming call Gitlab: #89 Change-Id: I54e0bdd4b437a9aee4f0575010e889bf891c287c
This commit is contained in:
parent
c4e6af3607
commit
f38b0b527f
1 changed files with 4 additions and 2 deletions
|
@ -141,7 +141,10 @@ Window {
|
|||
}
|
||||
|
||||
function toggleSettingsView() {
|
||||
if (!inSettingsView) {
|
||||
|
||||
inSettingsView = !inSettingsView
|
||||
|
||||
if (inSettingsView) {
|
||||
if (sidePanelOnly)
|
||||
sidePanelViewStack.push(leftPanelSettingsView, StackView.Immediate)
|
||||
else {
|
||||
|
@ -164,7 +167,6 @@ Window {
|
|||
mainViewWindowSidePanel.deselectConversationSmartList()
|
||||
}
|
||||
|
||||
inSettingsView = !inSettingsView
|
||||
}
|
||||
|
||||
title: "Jami"
|
||||
|
|
Loading…
Add table
Reference in a new issue