Commit a11a6bad authored by Nate Graham's avatar Nate Graham 🔩

Disable rather than hide inapplicable actions for HIG compliance

parent b5126a1d
......@@ -93,7 +93,7 @@ Kirigami.ApplicationWindow
property int photosTaken: 0
modeInfo: (photosTaken>0 ? i18np("1 photo", "%1 photos", photosTaken) : "") + (checked? "..." : "")
nameFilter: "picture_*"
visible: !videoMode.checked
enabled: !videoMode.checked
onCheckedChanged: if (checked) {
photosTaken = 0
}
......@@ -117,7 +117,7 @@ Kirigami.ApplicationWindow
text: i18n("Record a Video")
modeInfo: webcam.recordingTime
nameFilter: "video_*"
visible: !burstMode.checked
enabled: !burstMode.checked
onCheckedChanged: {
webcam.isRecording = checked;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment