diff --git a/Cargo.toml b/Cargo.toml index 75f8379..f688391 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,6 @@ sha2 = "0.11.0" tokio = { version = "1.53.1", features = ["rt", "rt-multi-thread", "macros"] } hex = "0.4.3" zstd = "0.13.3" -#mimalloc = "0.1.52" [dev-dependencies] criterion = "0.8.2" diff --git a/src/main.rs b/src/main.rs index b75c383..9f9c81f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,12 +30,10 @@ use iced::{keyboard, Subscription, Theme}; use iced::{window, Font}; use iced_core::window::Position; use iced_core::Size; -// use mimalloc::MiMalloc; use rusqlite::Connection; use std::collections::HashMap; +use iced_core::window::settings::PlatformSpecific; -// #[global_allocator] -// static GLOBAL: MiMalloc = MiMalloc; const USER_FONT: Font = Font::with_name("Noto Sans JP"); fn main() -> iced::Result { @@ -43,10 +41,14 @@ fn main() -> iced::Result { iced::application(ScreenState::boot, ScreenState::update, ScreenState::view).window(window::Settings{ position: Position::Centered, min_size: Some(Size::new(700.0_f32.into(), 700.0_f32.into())), + platform_specific: PlatformSpecific { + application_id: "JapLearn".to_string(), + override_redirect: false + }, .. Default::default() }) .subscription(subscription) - .title("Kana learn app") + .title("JapLearn") .settings(iced::Settings { default_text_size: iced::Pixels(18.0), ..iced::Settings::default()