Commit 5ce9797
authored
Fix: Hide 'Minimize to system tray' setting on Wayland (FreeTubeApp#9208)
* Add tooltip to 'Minimize to system tray' setting indicating that it is not available on Wayland
* Only show tooltip for linux
* Hide 'Minimize to system tray' setting on Wayland
* Code clean-up
* Replace getCmdSwitchValue with getWaylandPlatform
* Add migration script to disable 'hideToTrayOnMinimize' setting if it was enabled on Wayland
* Revert "Add migration script to disable 'hideToTrayOnMinimize' setting if it was enabled on Wayland"
This reverts commit 5e262c7.
* Rename getWayland to isWayland
* Apply suggestion
* Skip tray code paths for wayland
* Revert addition of yarn.lock file1 parent d2d072d commit 5ce9797
4 files changed
Lines changed: 32 additions & 8 deletions
File tree
- src
- main
- preload
- renderer/components/GeneralSettings
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
| |||
346 | 347 | | |
347 | 348 | | |
348 | 349 | | |
349 | | - | |
| 350 | + | |
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| |||
524 | 525 | | |
525 | 526 | | |
526 | 527 | | |
527 | | - | |
| 528 | + | |
528 | 529 | | |
529 | 530 | | |
530 | 531 | | |
| |||
1032 | 1033 | | |
1033 | 1034 | | |
1034 | 1035 | | |
1035 | | - | |
| 1036 | + | |
1036 | 1037 | | |
1037 | 1038 | | |
1038 | 1039 | | |
| |||
1144 | 1145 | | |
1145 | 1146 | | |
1146 | 1147 | | |
1147 | | - | |
| 1148 | + | |
1148 | 1149 | | |
1149 | 1150 | | |
1150 | 1151 | | |
| |||
1346 | 1347 | | |
1347 | 1348 | | |
1348 | 1349 | | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
1349 | 1356 | | |
1350 | 1357 | | |
1351 | 1358 | | |
| |||
1656 | 1663 | | |
1657 | 1664 | | |
1658 | 1665 | | |
1659 | | - | |
| 1666 | + | |
1660 | 1667 | | |
1661 | 1668 | | |
1662 | 1669 | | |
| |||
2114 | 2121 | | |
2115 | 2122 | | |
2116 | 2123 | | |
2117 | | - | |
| 2124 | + | |
2118 | 2125 | | |
2119 | 2126 | | |
2120 | 2127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
| |||
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
193 | 202 | | |
194 | 203 | | |
195 | 204 | | |
| |||
0 commit comments