From f6effd89b0fd575242419b65d365f65bdf33603e Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Thu, 19 Sep 2024 21:22:06 +0300 Subject: [PATCH] add trans --- locales/en_US.json | 6 +++++- src/bin/gui/apt_manage_page/mod.rs | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/locales/en_US.json b/locales/en_US.json index 6decdbc..8df9ff0 100644 --- a/locales/en_US.json +++ b/locales/en_US.json @@ -89,5 +89,9 @@ "system_mirror_label0_label": "System Repository Mirror", "system_mirror_label1_label": "The Default URI/Mirror Used by the Base PikaOS System APT Repositories\n(Nest, Cockatiel, Canary, Pigeon, Parrot, Raven)", "unofficial_sources_label": "Un-Official APT Sources", - "unofficial_sources_label1_label": "Un-Official Custom APT Sources Added by The User or Some User Run Script\nThese Sources May Result in ABI/Dep Hell or Security Risks, and Thus Making a \"package-request\" is Recommended Over These Sources" + "unofficial_sources_label1_label": "Un-Official Custom APT Sources Added by The User or Some User Run Script\nThese Sources May Result in ABI/Dep Hell or Security Risks, and Thus Making a \"package-request\" is Recommended Over These Sources", + "unofficial_sources_columnview_col0_title": "Apt Repository", + "unofficial_sources_columnview_col1_title": "Enabled", + "apt_repo_enabled": "Yes", + "apt_repo_disabled": "No" } \ No newline at end of file diff --git a/src/bin/gui/apt_manage_page/mod.rs b/src/bin/gui/apt_manage_page/mod.rs index bbcb556..b52d328 100644 --- a/src/bin/gui/apt_manage_page/mod.rs +++ b/src/bin/gui/apt_manage_page/mod.rs @@ -263,8 +263,8 @@ pub fn apt_manage_page( // unofficial_sources_selection_model.connect_selected_item_notify(|selection| { - let selection = selection.selected_item().unwrap(); - let entry = selection.downcast_ref::().unwrap(); + //let selection = selection.selected_item().unwrap(); + //let entry = selection.downcast_ref::().unwrap(); //let r: Ref = entry.borrow(); //println!("{}", r.col2.to_string()) });