[simple-scan] Disable possibility of scanning if no device is found, to avoid unnecessary errors
- From: Bartosz <bkosiorek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan] Disable possibility of scanning if no device is found, to avoid unnecessary errors
- Date: Fri, 10 Apr 2020 23:22:09 +0000 (UTC)
commit 1294fa21cbdd7f63ee4958b15c4120f870b060f9
Author: Bartosz Kosiorek <gang65 poczta onet pl>
Date: Sat Apr 11 01:02:59 2020 +0200
Disable possibility of scanning if no device is found, to avoid unnecessary errors
src/app-window.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index 92ba992..6f85796 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -246,6 +246,7 @@ public class AppWindow : Gtk.ApplicationWindow
private void update_scan_status ()
{
+ scan_button.set_sensitive(false);
if (!have_devices)
{
status_primary_label.set_text (/* Label shown when searching for scanners */
@@ -255,6 +256,7 @@ public class AppWindow : Gtk.ApplicationWindow
}
else if (get_selected_device () != null)
{
+ scan_button.set_sensitive(true);
status_primary_label.set_text (/* Label shown when detected a scanner */
_("Ready to Scan"));
status_secondary_label.set_text (get_selected_device_label ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]