mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
restore mouse wheel actions for tasks
BUG: 401380 FIXED-IN: 0.8.4
This commit is contained in:
parent
85e53e3e22
commit
45a582d36b
@ -50,33 +50,17 @@ Item{
|
||||
Repeater{
|
||||
model:DelegateModel {
|
||||
id: windowsLocalModel
|
||||
model: tasksModel //icList.model
|
||||
/* rootIndex: {
|
||||
if (root.inDraggingPhase) {
|
||||
return tasksModel.makeModelIndex(lastValidIndex);
|
||||
}
|
||||
model: tasksModel
|
||||
|
||||
return tasksModel.makeModelIndex(currentIndex >=0 ? currentIndex : index)
|
||||
}*/
|
||||
//! This is a little suspicious code for crashes
|
||||
//! during dragging or when the dragging ends. It needs
|
||||
//! investigation to be confirmed or not
|
||||
rootIndex: tasksModel.makeModelIndex(currentIndex >=0 ? currentIndex : index)
|
||||
|
||||
property int currentIndex: -1
|
||||
|
||||
//! Trying to avoid a crash during dragging tasks/launchers
|
||||
Binding{
|
||||
target: windowsLocalModel
|
||||
property: "rootIndex"
|
||||
|
||||
value: {
|
||||
if (root.inDraggingPhase) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return tasksModel.makeModelIndex(currentIndex >=0 ? currentIndex : index)
|
||||
}
|
||||
}
|
||||
|
||||
delegate: Item{
|
||||
readonly property string title: display
|
||||
readonly property string title: display !== undefined ? display : ""
|
||||
readonly property bool isMinimized: IsMinimized === true ? true : false
|
||||
|
||||
onIsMinimizedChanged: windowsContainer.initializeStates();
|
||||
|
Loading…
x
Reference in New Issue
Block a user