09/75: saving synchronisation time when update successful
This is an automated email from the git hooks/post-receive script. New commit to branch feature/sync in repository jtimer. See https://gitlab.nuiton.org/chorem/jtimer.git commit 8793f5b2a95f894b72cc606e79aaacaeb12e6c82 Author: servantie <servantie.c@gmail.com> Date: Fri May 20 09:48:12 2016 +0200 saving synchronisation time when update successful --- .../java/org/chorem/jtimer/ui/report/TimerTaskUpdaterView.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/org/chorem/jtimer/ui/report/TimerTaskUpdaterView.java b/src/main/java/org/chorem/jtimer/ui/report/TimerTaskUpdaterView.java index 0c264a5..4b72b27 100644 --- a/src/main/java/org/chorem/jtimer/ui/report/TimerTaskUpdaterView.java +++ b/src/main/java/org/chorem/jtimer/ui/report/TimerTaskUpdaterView.java @@ -38,14 +38,12 @@ import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; import java.awt.*; import java.io.IOException; -import java.io.InputStream; import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java.net.*; import java.text.DateFormat; import java.time.LocalDate; import java.time.LocalDateTime; -import java.time.ZoneId; import java.util.*; import java.util.List; @@ -90,11 +88,8 @@ public class TimerTaskUpdaterView extends FrameView implements DocumentListener public TimerTaskUpdaterView(Application application, TimerCore core, TimerTask task) { super(application); - // modify frame name - // otherwise, get parent frame dimension getFrame().setName("updateFrame"); - //getFrame().setTitle("Update"); getFrame().setTitle(getResourceMap().getString("updateTitle")); this.core = core; @@ -452,7 +447,7 @@ public class TimerTaskUpdaterView extends FrameView implements DocumentListener } //if all has gone well, update SyncTime (todo:save information) if (hasUpdated) { - task.setLastSync(LocalDateTime.now()); + core.getData().editTaskLastSync(task, LocalDateTime.now()); } } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm