Remove label
This commit is contained in:
parent
033d2d973a
commit
191b2da96c
@ -14,9 +14,6 @@ const BUTTON_PADDING: Vec2 = Vec2 { x: 24.0, y: 5.0 };
|
|||||||
pub struct TemplateApp {
|
pub struct TemplateApp {
|
||||||
calculator: Calculator,
|
calculator: Calculator,
|
||||||
|
|
||||||
// Example stuff:
|
|
||||||
label: String,
|
|
||||||
|
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
latest_error: Option<CalculatorError>,
|
latest_error: Option<CalculatorError>,
|
||||||
|
|
||||||
@ -28,8 +25,6 @@ impl Default for TemplateApp {
|
|||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
calculator: Calculator::default(),
|
calculator: Calculator::default(),
|
||||||
// Example stuff:
|
|
||||||
label: "Hello World!".to_owned(),
|
|
||||||
latest_error: None,
|
latest_error: None,
|
||||||
error_state: ErrorState::default(),
|
error_state: ErrorState::default(),
|
||||||
}
|
}
|
||||||
@ -135,7 +130,7 @@ impl eframe::App for TemplateApp {
|
|||||||
/// Called each time the UI needs repainting, which may be many times per second.
|
/// Called each time the UI needs repainting, which may be many times per second.
|
||||||
/// Put your widgets into a `SidePanel`, `TopPanel`, `CentralPanel`, `Window` or `Area`.
|
/// Put your widgets into a `SidePanel`, `TopPanel`, `CentralPanel`, `Window` or `Area`.
|
||||||
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
|
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
|
||||||
let Self { label, .. } = self;
|
let Self { .. } = self;
|
||||||
|
|
||||||
// Examples of how to create different panels and windows.
|
// Examples of how to create different panels and windows.
|
||||||
// Pick whichever suits you.
|
// Pick whichever suits you.
|
||||||
|
Loading…
Reference in New Issue
Block a user