1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-02 13:24:12 +01:00
Arduino/app
Matthijs Kooijman 7c4205b412 Handle nested submenus of the Tools menu
There is some code that, for each submenu under Tools, shows the
selected item in the label of the submenu itself (e.g. before opening
the submenu). This was done whenever the Tools menu is opened and
iterated over all the items in the submenu to identify the s

Previously, this code only looked at direct children of the submenu.
Now, this code also looks through submenus recursively, to keep the code
working even when items are divided over sub-submenus.

This makes a small behaviour change: previously, the first selected item
with a non-zero label was used. Now, the first selected item is used,
which makes the code a bit cleaner. I cannot quickly see any case where
the first selected item would have an empty text (and even more that
there is *another* selected item), so this check seems unnecessary. If
this case would occur nonetheless, it would only mean the selected item
is not displayed in the tools menu, nothing would otherwise break.
2020-03-25 15:26:53 +01:00
..
.settings Updated eclipse formatter options 2017-02-20 15:22:27 +01:00
lib Remove "MrBean" dependency 2020-02-19 15:13:47 +01:00
src Handle nested submenus of the Tools menu 2020-03-25 15:26:53 +01:00
test Added unit testing for UTF8 decoder in Serial 2020-03-24 15:24:50 +01:00
test-lib added files that state third party licenses 2013-08-28 10:12:33 +02:00
testdata/libraries Added first tests for library manager engine 2018-05-17 09:14:25 +02:00
.classpath Remove "MrBean" dependency 2020-02-19 15:13:47 +01:00
.classpath_macosx Got rid of ANTLR: we never used it 2015-08-10 09:35:47 +02:00
.editorconfig Added .editorconfig files http://editorconfig.org/ 2015-05-08 10:18:43 +02:00
.project Importing Processing rev. 5503 (1.0.3). 2009-05-31 15:53:33 +00:00
build.xml Treat JUnit errors as failures to increase visibility 2020-01-31 16:00:04 +01:00