Fix login box tab shortcuts

This commit is contained in:
miruka 2020-08-19 10:09:37 -04:00
parent 3c79ffbf21
commit ede99b310e
2 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,8 @@ import "../ShortcutBundles"
TabBar {
id: tabBar
property alias shortcutsEnabled: tabShortcuts.active
spacing: 0
position: TabBar.Header
@ -20,6 +22,7 @@ TabBar {
}
TabShortcuts {
id: tabShortcuts
container: tabBar
}
}

View File

@ -1,10 +1,11 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import "../../Base"
HSwipeView {
SwipeView {
id: swipeView
clip: true
interactive: serverBrowser.acceptedUrl
@ -38,6 +39,7 @@ HSwipeView {
height: Math.min(implicitHeight, tabPage.availableHeight)
header: HTabBar {
shortcutsEnabled: visible && tabPage.enabled
visible:
signInLoader.sourceComponent !== signInLoader.signInSso