[chronojump] networks devices button gets unsensitive on person logout/change
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] networks devices button gets unsensitive on person logout/change
- Date: Mon, 15 Jul 2019 12:51:34 +0000 (UTC)
commit 40f6a4577366e0db99735a47aab316d199729131
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Jul 15 14:51:07 2019 +0200
networks devices button gets unsensitive on person logout/change
src/gui/networks.cs | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index d1308d64..53b2a7c6 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -723,6 +723,10 @@ public partial class ChronoJumpWindow
//load current session if MONTHLY and current session is not current month and
currentPerson is not compumpAdminID
compujumpPersonChangedShouldChangeSession();
+
+ //not allow to change devices if person changed. If you want to change again, go to
preferences/advanced networksAllowChangeDevices
+ preferences.networksAllowChangeDevices = false;
+ button_activate_chronopics_encoder.Sensitive = false;
}
//Wakeup screen if it's off
@@ -938,6 +942,10 @@ public partial class ChronoJumpWindow
currentPerson = null;
currentPersonSession = null;
sensitiveGuiNoPerson ();
+
+ //not allow to change devices if person changed. If you want to change again, go to
preferences/advanced networksAllowChangeDevices
+ preferences.networksAllowChangeDevices = false;
+ button_activate_chronopics_encoder.Sensitive = false;
}
private void compujumpPersonAutoLogoutChanged(object o, EventArgs args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]