[chronojump] On networks disallow to upload if there is no connection to server
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] On networks disallow to upload if there is no connection to server
- Date: Mon, 26 Jul 2021 17:08:58 +0000 (UTC)
commit 40a5a32a07fcc59b4979f1d0380bda95e6e0e368
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Jul 26 18:58:02 2021 +0200
On networks disallow to upload if there is no connection to server
src/gui/networks.cs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 335759f5c..a860de067 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -951,7 +951,12 @@ public partial class ChronoJumpWindow
//4) check if there are active Internet devices
NetworksCheckDevices ncd = new NetworksCheckDevices();
- //5) show dialog
+ //5) If disconnected, make check_encoder_networks_upload false and insensitive
+ check_encoder_networks_upload.Sensitive = json.Connected;
+ if(! json.Connected)
+ check_encoder_networks_upload.Active = false;
+
+ //6) show dialog
showDialogPersonPopup(tasks, stationsCount, ncd.ToString(), json.Connected);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]