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

Adapt the SaveVersionDialog text field to use ctr+s for accept #268

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .squot
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
OrderedDictionary {
'src\/VersionControl.package' : #SquotCypressCodeSerializer,
'src\/Pharo-compatibility.package' : #SquotCypressCodeSerializer,
'src\/Squot.package' : #SquotCypressCodeSerializer,
'src\/FileSystem-Git.package' : #SquotCypressCodeSerializer,
'src\/Squit.package' : #SquotCypressCodeSerializer,
'src\/BaselineOfSquot.package' : #SquotCypressCodeSerializer,
'src\/SquotTonel-Core.package' : #SquotCypressCodeSerializer,
'src\/SquotTonel-Tests.package' : #SquotCypressCodeSerializer
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like you have a different version of STON than I have?

'src/VersionControl.package' : #SquotCypressCodeSerializer,
'src/Pharo-compatibility.package' : #SquotCypressCodeSerializer,
'src/Squot.package' : #SquotCypressCodeSerializer,
'src/FileSystem-Git.package' : #SquotCypressCodeSerializer,
'src/Squit.package' : #SquotCypressCodeSerializer,
'src/BaselineOfSquot.package' : #SquotCypressCodeSerializer,
'src/SquotTonel-Core.package' : #SquotCypressCodeSerializer,
'src/SquotTonel-Tests.package' : #SquotCypressCodeSerializer
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
actions
accept
self updateMessageFromViews.
((self messageWasChanged not or: [message isEmpty])
and: [(self confirm: 'Do you really want to commit without a proper commit message?') not])
ifTrue: [^ self].
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
accessing
message: anObject notifying: aController
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since aController is unused here, why change from message: to message:notifying:?


self message: anObject.
self accept
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ widgetSpecs: builder
name: 'message for the new version';
model: self;
getText: #message;
setText: #message:;
setText: #message:notifying:;
askBeforeDiscardingEdits: true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

It takes me too long to check this myself in Morphic: does it prevent the commit dialog from closing if you press cancel? If so, how?

frame: (LayoutFrame fractions: ([email protected] corner: 1@1) offsets: (0@0 corner: 0@(-25)));
yourself.
self buildButtonBar: builder}
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
"class" : {
"themeProperties" : "jr 10/14/2018 00:52" },
"instance" : {
"accept" : "jr 5/22/2020 15:51",
"accept" : "tobe 6/6/2020 16:29",
"actionCommit" : "fn 4/11/2017 16:01",
"activateNodeCommandLabel" : "jr 4/7/2019 22:30",
"browseOtherEdition" : "jr 6/6/2020 01:04",
"browseOtherEditionLabel" : "jr 6/6/2020 00:48",
"buildButtonBar:" : "jr 11/18/2018 01:39",
"buildDiffPane:" : "jr 11/18/2018 01:33",
"cancel" : "jr 11/18/2018 00:44",
Copy link
Collaborator

Choose a reason for hiding this comment

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

The text was updated even on cancel, so the text could be saved for later.
Without your change, one can start a commit, write a message, then notice a bug in the diff, cancel, fix the code, press commit again, and the previously typed message is filled in automatically.
That logic is not in the dialog class, but in the SquotWorkingCopy or SquotInteractiveSaveOperation.

"deactivateNodeCommandLabel" : "jr 4/7/2019 22:29",
"defaultMessage" : "jr 10/14/2018 01:24",
"excludeMethodsThatAreAssumedUnchanged" : "jr 5/22/2020 15:49",
"initialize" : "jr 11/18/2018 00:50",
"inspectOriginalArtifactCommandLabel" : "jr 11/18/2018 01:05",
"message" : "jr 2/17/2017 17:03",
"message:" : "jr 2/17/2017 17:03",
"message:" : "tobe 6/6/2020 09:15",
"message:notifying:" : "tobe 6/6/2020 09:23",
"messageWasChanged" : "jr 11/17/2018 23:19",
"parentVersions:" : "jr 2/17/2017 19:34",
"rootNodes" : "jr 2/26/2020 22:57",
"updateMessageFromViews" : "jr 10/14/2018 01:30",
"widgetSpecs:" : "jr 11/18/2018 01:32",
"widgetSpecs:" : "tobe 6/6/2020 09:18",
"windowLabel" : "jr 11/18/2018 01:29" } }
14 changes: 0 additions & 14 deletions src/Squot.package/monticello.meta/postscript.st

This file was deleted.