Commit acfbd97
committed
fix: prevent dragging items to fixed plugin section
Added validation to prevent drag and drop operations from targeting
fixed plugin sections in the system tray. The changes include:
1. Implemented isForbiddenDropTarget function to check if drop target is
a fixed section
2. Added drag event rejection when attempting to drop on fixed sections
3. Marked quick settings toggle as fixed section in the model
4. This prevents users from accidentally moving or reordering critical
system components
fix: 防止拖拽项目到固定插件区域
添加验证以防止拖放操作目标为系统托盘中的固定插件区域。更改包括:
1. 实现 isForbiddenDropTarget 函数检查拖放目标是否为固定区域
2. 在尝试拖放到固定区域时添加拖放事件拒绝
3. 在模型中标记快速设置切换为固定区域
4. 防止用户意外移动或重新排列关键系统组件
Pms: BUG-289447 BUG-2894451 parent c06f1bc commit acfbd97
File tree
3 files changed
+36
-0
lines changed- panels/dock/tray
- package
3 files changed
+36
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
148 | 161 | | |
149 | 162 | | |
150 | 163 | | |
| |||
167 | 180 | | |
168 | 181 | | |
169 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
170 | 189 | | |
171 | 190 | | |
172 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| |||
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
554 | 570 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
0 commit comments