Frederic Marion-Poll July 29, 2019 at 9:50 pm
In order to disable the virtual cache globally (because it interferes with my old plugins and it is easier to inactivate it rather than hunting down all locations where we should call get ), I tried to inactivate the virtual cache programmatically. I insert the following command as the first line of run() of the old plugin:
This works well (the button is greyed and virtual mode is inactivated). However, the main title bar is not changed (both under Eclipse debug and when running Icy directly). When debugging this call, it leads to MainFrame.java “refreshTitle” and to the line:
final String virtual = ImageCache.isEnabled() && GeneralPreferences.getVirtualMode() ? ” (virtual mode)” : “”;
The result of this test is “(virtual mode)”.
fredFrederic Marion-Poll July 29, 2019 at 10:00 pm
Solution found: call setVirtualMode just before:
Icy.getMainInterface().getMainFrame().getInspector().imageCacheDisabled();Stephane Dallongeville July 30, 2019 at 12:04 pm
Thanks for reporting, i made a minor change so it should correctly update the title even using imageCacheDisabled() method alone.
You must be logged in to reply to this topic.