Driver installed label

This commit is contained in:
Ward from fusion-voyager-3 2024-03-17 17:50:50 +03:00
parent fbd14c849b
commit 2d8ab828aa
11 changed files with 28 additions and 10 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
pika-drivers (1.0.0-100pika5) pikauwu; urgency=medium
pika-drivers (1.0.0-100pika6) pikauwu; urgency=medium
* Temp internet check fix

View File

@ -16,5 +16,6 @@
"driver_install_dialog_success_true": "",
"driver_install_dialog_success_false": "",
"window_no_drivers_box_text_title": "",
"window_no_drivers_box_text_description": ""
"window_no_drivers_box_text_description": "",
"driver_status_icon_tooltip_text": ""
}

View File

@ -16,5 +16,6 @@
"driver_install_dialog_success_true": "Драйвърът е инсталиран успешно!",
"driver_install_dialog_success_false": "Драйвърът не е обработен успешно!",
"window_no_drivers_box_text_title": "Никои устройства не изискват специални драйвъри",
"window_no_drivers_box_text_description": "Никои устройства в твоята система нямат специални драйвъри в нашата база данни."
"window_no_drivers_box_text_description": "Никои устройства в твоята система нямат специални драйвъри в нашата база данни.",
"driver_status_icon_tooltip_text": ""
}

View File

@ -16,5 +16,6 @@
"driver_install_dialog_success_true": "Instalace ovladače proběhla úspěšně!",
"driver_install_dialog_success_false": "Instalace ovladače se nezdařila!",
"window_no_drivers_box_text_title": "Žádná zařízení nevyžadují speciální ovladače",
"window_no_drivers_box_text_description": "Na tvém počítači se nenachází žádné ovladače, podívej se tu prosím na naše ovladače."
"window_no_drivers_box_text_description": "Na tvém počítači se nenachází žádné ovladače, podívej se tu prosím na naše ovladače.",
"driver_status_icon_tooltip_text": ""
}

View File

@ -16,5 +16,6 @@
"driver_install_dialog_success_true": "Treiber erfolgreich installiert!",
"driver_install_dialog_success_false": "Der Treiber konnte nicht installiert werden!",
"window_no_drivers_box_text_title": "Keine Geräte erfordern spezielle Treiber",
"window_no_drivers_box_text_description": "Für keine auf Ihrem System installierten Geräte existieren spezielle Treiber in unserer Datenbank."
"window_no_drivers_box_text_description": "Für keine auf Ihrem System installierten Geräte existieren spezielle Treiber in unserer Datenbank.",
"driver_status_icon_tooltip_text": ""
}

View File

@ -16,5 +16,6 @@
"driver_install_dialog_success_true": "Driver processed successfully!",
"driver_install_dialog_success_false": "Driver did not process successfully!",
"window_no_drivers_box_text_title": "No Devices require any special drivers",
"window_no_drivers_box_text_description": "No Devices installed on your system, have a special driver in our database."
"window_no_drivers_box_text_description": "No Devices installed on your system, have a special driver in our database.",
"driver_status_icon_tooltip_text": "This Driver is installed!"
}

View File

@ -16,5 +16,6 @@
"driver_install_dialog_success_true": "Le pilote a été Installé avec succès!",
"driver_install_dialog_success_false": "Le pilote n'a pas été installé!",
"window_no_drivers_box_text_title": "Aucun périphérique ne nécessite de pilote spécial",
"window_no_drivers_box_text_description": "Aucun périphérique de votre système ne dispose d'un pilote spécial présent dans notre base de données."
"window_no_drivers_box_text_description": "Aucun périphérique de votre système ne dispose d'un pilote spécial présent dans notre base de données.",
"driver_status_icon_tooltip_text": ""
}

View File

@ -16,5 +16,6 @@
"driver_install_dialog_success_true": "Stuurprogramma succesvol geïnstalleerd!",
"driver_install_dialog_success_false": "Het stuurprogramma is niet succesvol geïnstalleerd!",
"window_no_drivers_box_text_title": "Geen apparaten vereisen speciale stuurprogramma's",
"window_no_drivers_box_text_description": "Geen enkel apparaat in uw systeem heeft een speciaal stuurprogramma in onze database."
"window_no_drivers_box_text_description": "Geen enkel apparaat in uw systeem heeft een speciaal stuurprogramma in onze database.",
"driver_status_icon_tooltip_text": ""
}

View File

@ -16,5 +16,6 @@
"driver_install_dialog_success_true": "Drivrutinen har installerats framgångsrikt!",
"driver_install_dialog_success_false": "Drivrutinen har inte installerats korrekt!",
"window_no_drivers_box_text_title": "Inga Enheter kräver några speciella drivrutiner",
"window_no_drivers_box_text_description": "Inga Enheter installerade på ditt system behöver en drivrutin från vår databas."
"window_no_drivers_box_text_description": "Inga Enheter installerade på ditt system behöver en drivrutin från vår databas.",
"driver_status_icon_tooltip_text": ""
}

View File

@ -16,5 +16,6 @@
"driver_install_dialog_success_true": "Sürücü başarıyla yüklendi!",
"driver_install_dialog_success_false": "Sürücü yüklenemedi!",
"window_no_drivers_box_text_title": "Hiçbir cihaz özel sürücü gerektirmiyor",
"window_no_drivers_box_text_description": "Sisteminizde kurulu hiçbir cihaz, veritabanımızda özel bir sürücü gerektirmiyor."
"window_no_drivers_box_text_description": "Sisteminizde kurulu hiçbir cihaz, veritabanımızda özel bir sürücü gerektirmiyor.",
"driver_status_icon_tooltip_text": ""
}

View File

@ -344,6 +344,12 @@ fn get_drivers(
.icon_name(driver.clone().icon)
.pixel_size(32)
.build();
let driver_status_icon = gtk::Image::builder()
.icon_name("emblem-default")
.pixel_size(24)
.visible(false)
.tooltip_text(t!("driver_status_icon_tooltip_text"))
.build();
let driver_description_label = gtk::Label::builder()
.label(driver.clone().description)
.build();
@ -370,6 +376,7 @@ fn get_drivers(
let driver_action_box = gtk::Box::builder().homogeneous(true).build();
driver_remove_button.add_css_class("destructive-action");
driver_expander_row.add_prefix(&driver_icon);
driver_expander_row.add_suffix(&driver_status_icon);
if driver.clone().experimental == true {
driver_expander_row.set_title(
&(driver.clone().driver
@ -393,11 +400,13 @@ fn get_drivers(
driver_status_loop_context.spawn_local(clone!(@weak driver_remove_button, @weak driver_install_button, @strong driver_status_loop_receiver => async move {
while let Ok(driver_status_state) = driver_status_loop_receiver.recv().await {
if driver_status_state == true {
driver_status_icon.set_visible(true);
driver_install_button.set_sensitive(false);
if driver_package_removeble == true {
driver_remove_button.set_sensitive(true);
}
} else {
driver_status_icon.set_visible(false);
driver_remove_button.set_sensitive(false);
driver_install_button.set_sensitive(true);
}