From 6f8775377965bb505da3c9445e6223257a916049 Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Mon, 18 Oct 2021 04:03:48 +0530 Subject: [PATCH] lock qr button when hotspot is not active --- src/ui/ui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/ui.c b/src/ui/ui.c index 9104174..dbe541c 100644 --- a/src/ui/ui.c +++ b/src/ui/ui.c @@ -608,6 +608,7 @@ void lock_running_views(gboolean set_lock){ gtk_widget_set_sensitive ((GtkWidget*)button_create_hp, FALSE); gtk_widget_set_sensitive ((GtkWidget*)button_stop_hp, TRUE); + gtk_widget_set_sensitive ((GtkWidget*)button_qr, TRUE); gtk_widget_set_sensitive ((GtkWidget*)combo_internet, FALSE); gtk_widget_set_sensitive ((GtkWidget*)combo_wifi, FALSE); @@ -619,6 +620,7 @@ void lock_running_views(gboolean set_lock){ gtk_widget_set_sensitive ((GtkWidget*)button_create_hp, TRUE); gtk_widget_set_sensitive ((GtkWidget*)button_stop_hp, FALSE); + gtk_widget_set_sensitive ((GtkWidget*)button_qr, FALSE); gtk_widget_set_sensitive ((GtkWidget*)combo_internet, TRUE); gtk_widget_set_sensitive ((GtkWidget*)combo_wifi, TRUE);