From cb78296b0d4b064db981306d1bdc2cc9a2e2774f Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Thu, 22 Aug 2024 00:29:39 +0300 Subject: [PATCH] FIX APP_ID --- src/build_ui.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/build_ui.rs b/src/build_ui.rs index 7cec331..e1d3bc7 100644 --- a/src/build_ui.rs +++ b/src/build_ui.rs @@ -1,7 +1,5 @@ use crate::{ - efi_error_page, eula_page, keyboard_page, language_page, - partitioning_page::{self, CrypttabEntry, FstabEntry}, - timezone_page, welcome_page, + config::APP_ID, efi_error_page, eula_page, keyboard_page, language_page, partitioning_page::{self, CrypttabEntry, FstabEntry}, timezone_page, welcome_page }; use gtk::{gio, glib, prelude::*}; use std::{cell::RefCell, path::Path, rc::Rc}; @@ -20,7 +18,7 @@ pub struct PikaKeymap { } pub fn build_ui(app: &adw::Application) { - glib::set_prgname(Some("application_name")); + glib::set_prgname(Some(t!("application_name").to_string())); glib::set_application_name(&t!("application_name")); let carousel = adw::Carousel::builder() @@ -58,7 +56,7 @@ pub fn build_ui(app: &adw::Application) { .default_height(500) .deletable(false) .content(&toolbarview) - .startup_id("pika-installer-gtk4") + .startup_id(APP_ID) .build(); match Path::new("/sys/firmware/efi/efivars").exists() {