mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 06:49:56 +00:00
Bug 4100: Changed SettingsEntryDialog to not have 2 close buttons but
one changed to be a remove button instead
This commit is contained in:
1 parent
b6dee0b20e
commit
387acbf2e0
2 files changed
+4
-3
No files matched your search
+3
-2
@@ -12,10 +12,11 @@ public class SettingsEntryDialog extends DataEntryDialog<UserSettingsEntry> {
|
||||
|
||||
private final FlowPanel fp;
|
||||
|
||||
public SettingsEntryDialog(UserSettingsEntry entry) {
|
||||
super(StringMessages.INSTANCE.settings(), StringMessages.INSTANCE.settingsForId(entry.getKey()), StringMessages.INSTANCE.ok(), StringMessages.INSTANCE.cancel(), null, false, new DialogCallback<UserSettingsEntry>() {
|
||||
public SettingsEntryDialog(UserSettingsEntry entry, Runnable deleteCallback) {
|
||||
super(StringMessages.INSTANCE.settings(), StringMessages.INSTANCE.settingsForId(entry.getKey()), StringMessages.INSTANCE.remove(), StringMessages.INSTANCE.cancel(), null, false, new DialogCallback<UserSettingsEntry>() {
|
||||
@Override
|
||||
public void ok(UserSettingsEntry editedObject) {
|
||||
deleteCallback.run();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ public class UserSettings extends Composite implements UserSettingsView {
|
||||
showColumn.setFieldUpdater(new FieldUpdater<UserSettingsEntry, String>() {
|
||||
@Override
|
||||
public void update(int index, UserSettingsEntry object, String value) {
|
||||
new SettingsEntryDialog(object).show();
|
||||
new SettingsEntryDialog(object, () -> presenter.remove(object)).show();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user