Skip to content

Commit

Permalink
Also update variable name in rlwinm.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Dec 2, 2024
1 parent 9de6ea7 commit e0e51fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions objdiff-gui/src/views/rlwinm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ pub fn rlwinm_decode_window(
egui::Window::new("Rlwinm Decoder").open(show).show(ctx, |ui| {
ui.text_edit_singleline(&mut state.text);
ui.add_space(10.0);
if let Some(demangled) = rlwinmdec::decode(&state.text) {
if let Some(decoded) = rlwinmdec::decode(&state.text) {
ui.scope(|ui| {
ui.style_mut().override_text_style = Some(TextStyle::Monospace);
ui.colored_label(appearance.replace_color, demangled.trim());
ui.colored_label(appearance.replace_color, decoded.trim());
});
if ui.button("Copy").clicked() {
ui.output_mut(|output| output.copied_text = demangled);
ui.output_mut(|output| output.copied_text = decoded);
}
} else {
ui.scope(|ui| {
Expand Down

0 comments on commit e0e51fe

Please sign in to comment.