[chronojump] Shown error message of restart Chronojump if cannot recover from Chronopic disconnect
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Shown error message of restart Chronojump if cannot recover from Chronopic disconnect
- Date: Fri, 16 Oct 2020 17:23:11 +0000 (UTC)
commit fd5b12f574bb0f8a4bcb744d0e4b2ca935b104b4
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Oct 16 19:09:32 2020 +0200
Shown error message of restart Chronojump if cannot recover from Chronopic disconnect
src/gui/app1/chronojump.cs | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 35270dc7..987d0369 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -3844,6 +3844,13 @@ public partial class ChronoJumpWindow
bool canCaptureC = cp2016.StoredCanCaptureContacts;
bool wireless = cp2016.StoredWireless;
+ if(canCaptureC && cp2016.CP == null)
+ {
+ new DialogMessage(Constants.MessageTypes.WARNING,
+ "Problems connecting with Chronopic." + "\n\n" + "Please, restart
Chronojump");
+ return;
+ }
+
/*
* We need to do this to ensure no cancel_clicked calls accumulate
* if we don't do tue -= now, after 10 tests, if we cancel last one,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]