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

#enabled: for tool bar buttons #52

Closed
HPI-SWA-Bot opened this issue Apr 24, 2017 · 1 comment
Closed

#enabled: for tool bar buttons #52

HPI-SWA-Bot opened this issue Apr 24, 2017 · 1 comment
Assignees
Labels

Comments

@HPI-SWA-Bot
Copy link
Collaborator

Author: @krono

Message:
Put a selector to #enabled: for each button, for example for "Commit", so that it is not enabled when there's no proper selection

@krono
Copy link
Member

krono commented Apr 24, 2017

"..."

	commitButton := builder pluggableActionButtonSpec new.
	commitButton
		model: self;
		label: 'Commit';
		enabled: #hasProjectSelection;
		action: #actionCommit;
		help: 'Commit your current changes.'.
"..."
hasProjectSelection

	^ self projectIndex > 1 and: [self projectList size >= self projectIndex]

@fniephaus fniephaus self-assigned this Apr 24, 2017
fniephaus added a commit that referenced this issue Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants