examples/meta_example.rb in glimmer-dsl-libui-0.4.14 vs examples/meta_example.rb in glimmer-dsl-libui-0.4.15
- old
+ new
@@ -178,10 +178,12 @@
end
end
}
button('Reset') {
on_clicked do
- self.code_text = File.read(file_path_for(selected_example))
+ version_number = @version_spinbox.value == 1 ? '' : @version_spinbox.value
+ example = "#{selected_example}#{version_number}"
+ self.code_text = File.read(file_path_for(example))
end
}
}
}