Fix login box tab shortcuts
This commit is contained in:
parent
3c79ffbf21
commit
ede99b310e
|
@ -7,6 +7,8 @@ import "../ShortcutBundles"
|
||||||
TabBar {
|
TabBar {
|
||||||
id: tabBar
|
id: tabBar
|
||||||
|
|
||||||
|
property alias shortcutsEnabled: tabShortcuts.active
|
||||||
|
|
||||||
spacing: 0
|
spacing: 0
|
||||||
position: TabBar.Header
|
position: TabBar.Header
|
||||||
|
|
||||||
|
@ -20,6 +22,7 @@ TabBar {
|
||||||
}
|
}
|
||||||
|
|
||||||
TabShortcuts {
|
TabShortcuts {
|
||||||
|
id: tabShortcuts
|
||||||
container: tabBar
|
container: tabBar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
|
|
||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
|
import QtQuick.Controls 2.12
|
||||||
import QtQuick.Layouts 1.12
|
import QtQuick.Layouts 1.12
|
||||||
import "../../Base"
|
import "../../Base"
|
||||||
|
|
||||||
HSwipeView {
|
SwipeView {
|
||||||
id: swipeView
|
id: swipeView
|
||||||
clip: true
|
clip: true
|
||||||
interactive: serverBrowser.acceptedUrl
|
interactive: serverBrowser.acceptedUrl
|
||||||
|
@ -38,6 +39,7 @@ HSwipeView {
|
||||||
height: Math.min(implicitHeight, tabPage.availableHeight)
|
height: Math.min(implicitHeight, tabPage.availableHeight)
|
||||||
|
|
||||||
header: HTabBar {
|
header: HTabBar {
|
||||||
|
shortcutsEnabled: visible && tabPage.enabled
|
||||||
visible:
|
visible:
|
||||||
signInLoader.sourceComponent !== signInLoader.signInSso
|
signInLoader.sourceComponent !== signInLoader.signInSso
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user