lock qr button when hotspot is not active

This commit is contained in:
Lakindu Akash 2021-10-18 04:03:48 +05:30
parent d083bbdecf
commit 6f87753779
No known key found for this signature in database
GPG Key ID: 6FB0085A614E0AC2

View File

@ -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_create_hp, FALSE);
gtk_widget_set_sensitive ((GtkWidget*)button_stop_hp, TRUE); 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_internet, FALSE);
gtk_widget_set_sensitive ((GtkWidget*)combo_wifi, 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_create_hp, TRUE);
gtk_widget_set_sensitive ((GtkWidget*)button_stop_hp, FALSE); 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_internet, TRUE);
gtk_widget_set_sensitive ((GtkWidget*)combo_wifi, TRUE); gtk_widget_set_sensitive ((GtkWidget*)combo_wifi, TRUE);