Added Check-Only-Selected Item

** How was it Changed? **
- importing media to a video, a dialog appears with the tracks to be imported. All tracks are enabled
- there is already a context-menu-item to only check the selected language
- i added another item to the context menu to only check the selected tracks
- the logic is simple:
   - if nothing is selected, the target item is the only checked item
   - if there's selection, these items will then be checked
   - target-item has precedence from selected items because it's more precise but can also be fixed by reopening the menu by targeting the selection

** Why was it changed? **
- i often encounter videos that have all required languages and after conversion but they lack the forced subtitle track
- dragging the source media on the video will open a dialog and tons of subtitle tracks are all selected
- even choosing the "check selected language" item would still select multiple tracks, most of which would need to be deselected in a second step
This commit is contained in:
Karsten authored and Damiano Galassi committed 2025-03-11 11:01:57 +01:00
1 parent b26bcea29a
commit 5fdf9efa80
2 files changed
+25 -1

No files matched your search

+6
View File
@@ -36,6 +36,12 @@
<action selector="checkOnlyTracksWithSameLanguage:" target="-2" id="3Gg-ed-oeo"/>
</connections>
</menuItem>
<menuItem title="Check only selected tracks" id="KMR-fY-lFl">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="checkOnlySelectedTracks:" target="-2" id="6Fc-pF-u5c"/>
</connections>
</menuItem>
</items>
<point key="canvasLocation" x="139" y="146"/>
</menu>