Skip to content

Commit 70525e2

Browse files
committed
and use it
1 parent fc38927 commit 70525e2

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

configuration_setup_utility/record_with_buttons.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,18 @@ def bootstrap_devices
327327
storage['current_ext_sans_dot'] = 'mkv'
328328
end
329329
end
330-
330+
# check if anything was removed/changed extension wise
331+
if video_device && !storage['current_ext_sans_dot'].in?(@video_extensions)
332+
choose_extension_manually
333+
end
334+
# I think audio is covered? LOL
331335
end
332336

333337
# TODO 'wav' here once it works with solely wav :)
334338
@audio_extensions = ['mp3', 'aac']
335339
@video_extensions = ['mkv', 'mp4']
336340

337-
def choose_extension
341+
def choose_extension_manually
338342
if audio_devices_or_nil && !video_device
339343
storage['current_ext_sans_dot'] = DropDownSelector.new(@frame, @audio_extensions, "You are set to record only audio--Select audio Save as type").go_selected_value
340344
else

configuration_setup_utility/record_with_buttons_options_pane.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def show_options_frame
104104
}
105105
elements[:current_extension].text = storage['current_ext_sans_dot']
106106
elements[:choose_extension].on_clicked {
107-
choose_extension
107+
choose_extension_manually
108108
reset_options_frame
109109
}
110110

@@ -211,7 +211,7 @@ def choose_video
211211
video_device = choose_media :video
212212
storage['video_name'] = video_device
213213

214-
choose_extension # in case they chose none
214+
choose_extension_manually # in case they chose none
215215
reset_options_frame
216216
end
217217

@@ -248,7 +248,7 @@ def choose_audio
248248
audio_pane.close
249249
}
250250
audio_pane.after_closed {
251-
choose_extension
251+
choose_extension_manually # see comments for video
252252
reset_options_frame
253253
}
254254
end

0 commit comments

Comments
 (0)