chore: remove old needsKeyboard prop
This commit is contained in:
parent
680f4c9c74
commit
eb62e47d27
4 changed files with 1 additions and 12 deletions
|
|
@ -12,15 +12,6 @@ Item {
|
|||
id: root
|
||||
|
||||
required property DrawerVisibilities visibilities
|
||||
readonly property bool needsKeyboard: {
|
||||
const count = repeater.count;
|
||||
for (let i = 0; i < count; i++) {
|
||||
const item = repeater.itemAt(i) as Loader;
|
||||
if (item?.sourceComponent === mediaComponent && (item?.item as Media)?.needsKeyboard)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
required property DashboardState dashState
|
||||
required property FileDialog facePicker
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ Item {
|
|||
id: root
|
||||
|
||||
required property DrawerVisibilities visibilities
|
||||
readonly property bool needsKeyboard: false // TODO
|
||||
|
||||
implicitWidth: Tokens.sizes.dashboard.mediaTabWidth
|
||||
implicitHeight: Tokens.sizes.dashboard.mediaTabHeight
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ Item {
|
|||
id: root
|
||||
|
||||
required property DrawerVisibilities visibilities
|
||||
readonly property bool needsKeyboard: (content.item as Content)?.needsKeyboard ?? false
|
||||
readonly property DashboardState dashState: DashboardState {
|
||||
reloadableId: "dashboardState"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ StyledWindow {
|
|||
name: "drawers"
|
||||
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||
WlrLayershell.layer: fsTransitionProg > 0 && contentItem.Config.general.showOverFullscreen ? WlrLayer.Overlay : WlrLayer.Top
|
||||
WlrLayershell.keyboardFocus: visibilities.launcher || visibilities.session || panels.dashboard.needsKeyboard ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
|
||||
WlrLayershell.keyboardFocus: visibilities.launcher || visibilities.session ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
|
||||
|
||||
mask: hasFullscreen ? emptyRegion : regions
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue