fernandreu / office-ribbonx-editor

An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
MIT License
523 stars 103 forks source link

Find dialog clears the search text if the word is already on the list #65

Closed fernandreu closed 5 years ago

fernandreu commented 5 years ago

To Reproduce Steps to reproduce the behavior:

  1. Open the find dialog and search for something
  2. Close the dialog
  3. Open the find dialog and search again the same thing
  4. The search text will disappear

Expected behavior Search text should not disappear, no matter whether it is found or not.

Additional context This happens because the tool attempts to add a string to the recent list that already exists. To put it at the top of the list, it briefly gets removed, then inserted back at index 0. For the ComboBox bindings work, the selected item must always appear on the list.