Erroneous buttons created in AppDesigner
Ältere Kommentare anzeigen
I have an App created in AppDesigner that keeps creating five copies of the same button whenever I open the app. After deleting and/or resaving the entries in AppDesigner, the same buttons are recreated when I open the app again.
I have edited this app on both Windows and Mac, in 2017B, 2020B and 2021A. I am seeing this issue currently on Windows 2021A, but believe I also saw it on Mac 2021A. I would ideally like to keep functionality across all versions and operating systems, but understand if this is causing the issue.
I cannot easily create a minimal example, but will try if it would be helpful.
5 Kommentare
Image Analyst
am 22 Sep. 2021
What are the buttons called? When you save the new UI in App Designer, are there callbacks for those buttons still in the source code?
Are the buttons created upon launching App Designer, or at run time? Is they're created at run time, do you have any calls to the uibutton() or uicontrol() functions anywhere in your code that might create additional buttons?
Jeremiah Sullivan
am 22 Sep. 2021
Bearbeitet: Jeremiah Sullivan
am 22 Sep. 2021
Michael Van de Graaff
am 27 Sep. 2021
I had a similar problem, but with EditFieldLabels rather than a button. Eventually, I got sick of it and deleted all version of the labels being duplicated, an option which is more convenient when it's just a label.
I never did find a better, and my problem did not seem to multiply as yours does
Contact tech support. In a previous question, tech support provided a function to the user that solved the problem.
Kostas Pitrhs
am 27 Jun. 2024
I have the exact problem now in 2024a!
Antworten (1)
Reshma Nerella
am 2 Feb. 2022
0 Stimmen
Hi,
This issue might still be seen in future releases of MATLAB while editing the apps that were are created in any version before R2018b Update 3.
In your case, instead of editing the app in R2020b or R2021a, create a new one to prevent the issue.
1 Kommentar
Kostas Pitrhs
am 27 Jun. 2024
How was this bug fixed if it appears in 2021!!!
And by the way, I now have the xact same issue in 2024 a!!!!
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!