Skip to content

Commit

Permalink
Do not apply changes in preference page multiple times
Browse files Browse the repository at this point in the history
In case both the `Apply` and `Ok` button are pressed, all changes were
applied two times (and therefore no change happened at all).
  • Loading branch information
kiritsuku committed Sep 12, 2014
1 parent 2f667cd commit 434df9c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class SaveActionsPreferencePage extends PreferencePage with IWorkbenchPreference
prefStore.setValue(saveAction.id, !previousValue)
}
prefStore.setValue(SaveActionExtensions.SaveActionTimeoutId, timeoutValue.getText())
changes = Set()
super.performOk()
}

Expand Down

0 comments on commit 434df9c

Please sign in to comment.