Fix ctrl and shift selection

pull/2/head
reven 5 years ago
parent c061788e9c
commit 229a174622

@ -417,6 +417,8 @@ GridView {
// //
if (pressedItem != null && if (pressedItem != null &&
!control.rubberBand && !control.rubberBand &&
!control.shiftPressed &&
!control.ctrlPressed &&
!dirModel.dragging) { !dirModel.dragging) {
dirModel.clearSelection() dirModel.clearSelection()
dirModel.setSelected(pressedItem.index) dirModel.setSelected(pressedItem.index)

@ -322,6 +322,8 @@ ListView {
onReleased: { onReleased: {
if (pressedItem != null && if (pressedItem != null &&
!control.rubberBand && !control.rubberBand &&
!control.shiftPressed &&
!control.ctrlPressed &&
!dirModel.dragging) { !dirModel.dragging) {
dirModel.clearSelection() dirModel.clearSelection()
dirModel.setSelected(pressedItem.index) dirModel.setSelected(pressedItem.index)

@ -8,7 +8,7 @@ Settings {
property int height: 580 property int height: 580
property int desktopIconSize: 72 property int desktopIconSize: 72
property int maximumIconSize: 256 property int maximumIconSize: 256
property int minimumIconSize: 72 property int minimumIconSize: 64
property int gridIconSize: 72 property int gridIconSize: 64
} }

@ -85,7 +85,7 @@ FishUI.Window {
SideBar { SideBar {
id: _sideBar id: _sideBar
Layout.fillHeight: true Layout.fillHeight: true
width: 200 + FishUI.Units.largeSpacing width: 180 + FishUI.Units.largeSpacing
onClicked: _folderPage.openUrl(path) onClicked: _folderPage.openUrl(path)
} }

Loading…
Cancel
Save