This commit is contained in:
2025-05-15 11:44:02 -05:00
parent ee7c4c9560
commit fad2223495
8 changed files with 113 additions and 36 deletions

7
lib/spawn_radio_list.rb Normal file
View File

@@ -0,0 +1,7 @@
def spawn_radio_list(title, text, options_arr)
command = %(kdialog --title "#{title}" --radiolist "#{text}")
options_arr.each_with_index do |option, i|
command += %( #{i} "#{option}" off)
end
`#{command}`
end