[simple-scan] Make device combo insenstive while scanning is in progress
- From: Bartosz <bkosiorek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan] Make device combo insenstive while scanning is in progress
- Date: Wed, 22 Apr 2020 11:32:43 +0000 (UTC)
commit 9e8871d95c445bd00ac9143bf8bdc31177d10bbe
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Apr 21 09:54:01 2020 +1200
Make device combo insenstive while scanning is in progress
src/app-window.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index 78d304a..0348160 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -262,6 +262,7 @@ public class AppWindow : Gtk.ApplicationWindow
status_secondary_label.set_text (get_selected_device_label ());
status_secondary_label.visible = false;
device_combo.visible = true;
+ device_combo.sensitive = true;
}
else if (this.missing_driver != null)
{
@@ -819,6 +820,7 @@ public class AppWindow : Gtk.ApplicationWindow
{
status_primary_label.set_text (/* Label shown when scan started */
_("Contacting scanner…"));
+ device_combo.sensitive = false;
start_scan (get_selected_device (), options);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]