Driver installed label
This commit is contained in:
parent
fbd14c849b
commit
2d8ab828aa
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -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
|
* Temp internet check fix
|
||||||
|
|
||||||
|
@ -16,5 +16,6 @@
|
|||||||
"driver_install_dialog_success_true": "",
|
"driver_install_dialog_success_true": "",
|
||||||
"driver_install_dialog_success_false": "",
|
"driver_install_dialog_success_false": "",
|
||||||
"window_no_drivers_box_text_title": "",
|
"window_no_drivers_box_text_title": "",
|
||||||
"window_no_drivers_box_text_description": ""
|
"window_no_drivers_box_text_description": "",
|
||||||
|
"driver_status_icon_tooltip_text": ""
|
||||||
}
|
}
|
||||||
|
@ -16,5 +16,6 @@
|
|||||||
"driver_install_dialog_success_true": "Драйвърът е инсталиран успешно!",
|
"driver_install_dialog_success_true": "Драйвърът е инсталиран успешно!",
|
||||||
"driver_install_dialog_success_false": "Драйвърът не е обработен успешно!",
|
"driver_install_dialog_success_false": "Драйвърът не е обработен успешно!",
|
||||||
"window_no_drivers_box_text_title": "Никои устройства не изискват специални драйвъри",
|
"window_no_drivers_box_text_title": "Никои устройства не изискват специални драйвъри",
|
||||||
"window_no_drivers_box_text_description": "Никои устройства в твоята система нямат специални драйвъри в нашата база данни."
|
"window_no_drivers_box_text_description": "Никои устройства в твоята система нямат специални драйвъри в нашата база данни.",
|
||||||
|
"driver_status_icon_tooltip_text": ""
|
||||||
}
|
}
|
||||||
|
@ -16,5 +16,6 @@
|
|||||||
"driver_install_dialog_success_true": "Instalace ovladače proběhla úspěšně!",
|
"driver_install_dialog_success_true": "Instalace ovladače proběhla úspěšně!",
|
||||||
"driver_install_dialog_success_false": "Instalace ovladače se nezdařila!",
|
"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_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": ""
|
||||||
}
|
}
|
||||||
|
@ -16,5 +16,6 @@
|
|||||||
"driver_install_dialog_success_true": "Treiber erfolgreich installiert!",
|
"driver_install_dialog_success_true": "Treiber erfolgreich installiert!",
|
||||||
"driver_install_dialog_success_false": "Der Treiber konnte nicht installiert werden!",
|
"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_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": ""
|
||||||
}
|
}
|
||||||
|
@ -16,5 +16,6 @@
|
|||||||
"driver_install_dialog_success_true": "Driver processed successfully!",
|
"driver_install_dialog_success_true": "Driver processed successfully!",
|
||||||
"driver_install_dialog_success_false": "Driver did not process 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_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!"
|
||||||
}
|
}
|
||||||
|
@ -16,5 +16,6 @@
|
|||||||
"driver_install_dialog_success_true": "Le pilote a été Installé avec succès !",
|
"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é!",
|
"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_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": ""
|
||||||
}
|
}
|
||||||
|
@ -16,5 +16,6 @@
|
|||||||
"driver_install_dialog_success_true": "Stuurprogramma succesvol geïnstalleerd!",
|
"driver_install_dialog_success_true": "Stuurprogramma succesvol geïnstalleerd!",
|
||||||
"driver_install_dialog_success_false": "Het stuurprogramma is niet 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_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": ""
|
||||||
}
|
}
|
||||||
|
@ -16,5 +16,6 @@
|
|||||||
"driver_install_dialog_success_true": "Drivrutinen har installerats framgångsrikt!",
|
"driver_install_dialog_success_true": "Drivrutinen har installerats framgångsrikt!",
|
||||||
"driver_install_dialog_success_false": "Drivrutinen har inte installerats korrekt!",
|
"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_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": ""
|
||||||
}
|
}
|
||||||
|
@ -16,5 +16,6 @@
|
|||||||
"driver_install_dialog_success_true": "Sürücü başarıyla yüklendi!",
|
"driver_install_dialog_success_true": "Sürücü başarıyla yüklendi!",
|
||||||
"driver_install_dialog_success_false": "Sürücü yüklenemedi!",
|
"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_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": ""
|
||||||
}
|
}
|
||||||
|
@ -344,6 +344,12 @@ fn get_drivers(
|
|||||||
.icon_name(driver.clone().icon)
|
.icon_name(driver.clone().icon)
|
||||||
.pixel_size(32)
|
.pixel_size(32)
|
||||||
.build();
|
.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()
|
let driver_description_label = gtk::Label::builder()
|
||||||
.label(driver.clone().description)
|
.label(driver.clone().description)
|
||||||
.build();
|
.build();
|
||||||
@ -370,6 +376,7 @@ fn get_drivers(
|
|||||||
let driver_action_box = gtk::Box::builder().homogeneous(true).build();
|
let driver_action_box = gtk::Box::builder().homogeneous(true).build();
|
||||||
driver_remove_button.add_css_class("destructive-action");
|
driver_remove_button.add_css_class("destructive-action");
|
||||||
driver_expander_row.add_prefix(&driver_icon);
|
driver_expander_row.add_prefix(&driver_icon);
|
||||||
|
driver_expander_row.add_suffix(&driver_status_icon);
|
||||||
if driver.clone().experimental == true {
|
if driver.clone().experimental == true {
|
||||||
driver_expander_row.set_title(
|
driver_expander_row.set_title(
|
||||||
&(driver.clone().driver
|
&(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 {
|
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 {
|
while let Ok(driver_status_state) = driver_status_loop_receiver.recv().await {
|
||||||
if driver_status_state == true {
|
if driver_status_state == true {
|
||||||
|
driver_status_icon.set_visible(true);
|
||||||
driver_install_button.set_sensitive(false);
|
driver_install_button.set_sensitive(false);
|
||||||
if driver_package_removeble == true {
|
if driver_package_removeble == true {
|
||||||
driver_remove_button.set_sensitive(true);
|
driver_remove_button.set_sensitive(true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
driver_status_icon.set_visible(false);
|
||||||
driver_remove_button.set_sensitive(false);
|
driver_remove_button.set_sensitive(false);
|
||||||
driver_install_button.set_sensitive(true);
|
driver_install_button.set_sensitive(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user