Skip to content

Commit

Permalink
Fix package_tab compilations errors
Browse files Browse the repository at this point in the history
  • Loading branch information
snpefk committed Sep 28, 2024
1 parent 67cf1be commit 93aefc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/opensi-editor/src/package_tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ fn package_info_edit(package: &mut Package, ui: &mut egui::Ui) {
ui.add(egui::DragValue::new(&mut package.difficulty).range(0..=10));
});
package_edit_row("Ограничения", &mut body, |ui| {
ui.text_edit_singleline(&mut package.restriciton);
let mut s = package.restriciton.clone().unwrap();
ui.text_edit_singleline(&mut s);
});
package_edit_row("Дата создания", &mut body, |ui| {
ui.text_edit_singleline(&mut package.date);
Expand All @@ -46,7 +47,8 @@ fn package_info_edit(package: &mut Package, ui: &mut egui::Ui) {
ui.text_edit_singleline(&mut package.publisher);
});
package_edit_row("Язык", &mut body, |ui| {
ui.text_edit_singleline(&mut package.language);
let mut s = package.language.clone().unwrap();
ui.text_edit_singleline(&mut s);
});
});

Expand Down

0 comments on commit 93aefc2

Please sign in to comment.