Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask before closing #118

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

th-we
Copy link

@th-we th-we commented Apr 28, 2018

Added a message that asks whether to submit all tracked times before closing the program. Should work similarly to the familiar Save prompt popping up when closing modified files in editors.

Please review, I'm not experienced with C#.

this.TimeElapsed = TimeElapsed;
DateTimeOffset initialStartTime;
if (startTime == null)
public WorklogForm(IssueControl issueControl)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's good practice to increase coupling.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this to not make the already long signature of the constructor even longer. Because all the arguments only really make sense if they stem from the same IssueControl object I thought the cleaner signature makes clearer what's going on.

It's not a big deal to change that back, though – if this PR has any chance of being accepted by @carstengehling.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with you. Repository looks abandoned...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants