Skip to content

Commit

Permalink
Fix build on non-macOS platforms
Browse files Browse the repository at this point in the history
Signed-off-by: Visual Ehrmanntraut <[email protected]>
  • Loading branch information
VisualEhrmanntraut committed Oct 12, 2023
1 parent 9777bc2 commit f483afd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
sync::{Arc, Mutex, Once},
};

use egui::{Align, Key, KeyboardShortcut, Label, Layout, Modifiers};
use egui::{Align, Key, KeyboardShortcut, Layout, Modifiers};
use egui_extras::{Column, TableBuilder};
use plist::Value;
use serde::{Deserialize, Serialize};
Expand All @@ -26,7 +26,6 @@ pub struct PlistOxide {
can_close: bool,
#[serde(skip)]
egui_ctx: egui::Context,
#[cfg(target_os = "macos")]
title: String,
}

Expand All @@ -46,7 +45,6 @@ impl PlistOxide {
can_close: false,
closing: false,
egui_ctx: cc.egui_ctx.clone(),
#[cfg(target_os = "macos")]
title: "Untitled.plist".into(),
})
}
Expand Down Expand Up @@ -227,7 +225,7 @@ impl eframe::App for PlistOxide {

egui::CentralPanel::default().show(ctx, |ui| {
#[cfg(target_os = "macos")]
ui.add_sized((ui.available_width(), 14.0), Label::new(&self.title));
ui.add_sized((ui.available_width(), 14.0), egui::Label::new(&self.title));

TableBuilder::new(ui)
.striped(true)
Expand Down

0 comments on commit f483afd

Please sign in to comment.