mirror of
https://github.com/Zenithsiz/dcb.git
synced 2026-02-04 00:21:57 +00:00
Fixed swap window button labels being swapped.
This commit is contained in:
parent
4f7a8a149e
commit
b155e2594f
@ -33,13 +33,13 @@ impl SwapWindow {
|
||||
egui::Window::new("Swap screen").show(ctx, |ui| {
|
||||
ui.horizontal(|ui| {
|
||||
ui.label(self.first.as_str().unwrap_or("None"));
|
||||
if ui.button(self.second.button_label()).clicked() {
|
||||
if ui.button(self.first.button_label()).clicked() {
|
||||
self.first.toggle();
|
||||
}
|
||||
});
|
||||
ui.horizontal(|ui| {
|
||||
ui.label(self.second.as_str().unwrap_or("None"));
|
||||
if ui.button(self.first.button_label()).clicked() {
|
||||
if ui.button(self.second.button_label()).clicked() {
|
||||
self.second.toggle();
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user