1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-14 11:29:26 +01:00

library manager: installed element is now displayed correctly

This commit is contained in:
Cristian Maglie 2018-05-22 09:53:37 +02:00
parent d4a12205fa
commit e18261f486

View File

@ -218,8 +218,9 @@ public class LibraryManagerUI extends InstallerJDialog<ContributedLibraryRelease
try { try {
setProgressVisible(true, tr("Installing...")); setProgressVisible(true, tr("Installing..."));
installer.install(lib, mayReplaced, this::setProgress); installer.install(lib, mayReplaced, this::setProgress);
onIndexesUpdated(); // TODO: Do a better job in refreshing only the needed element onIndexesUpdated();
//getContribModel().updateLibrary(lib); // TODO: Do a better job in refreshing only the needed element
((LibrariesIndexTableModel) contribModel).update();
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} finally { } finally {
@ -246,8 +247,9 @@ public class LibraryManagerUI extends InstallerJDialog<ContributedLibraryRelease
try { try {
setProgressVisible(true, tr("Removing...")); setProgressVisible(true, tr("Removing..."));
installer.remove(lib, this::setProgress); installer.remove(lib, this::setProgress);
onIndexesUpdated(); // TODO: Do a better job in refreshing only the needed element onIndexesUpdated();
//getContribModel().updateLibrary(lib); // TODO: Do a better job in refreshing only the needed element
((LibrariesIndexTableModel) contribModel).update();
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} finally { } finally {