if (!Main.pref.getBoolean("audio.menuinvisible", false)) {
showAudioMenu(true);
}
Main.pref.addPreferenceChangeListener(new PreferenceChangedListener() {
@Override
public void preferenceChanged(PreferenceChangeEvent e) {
if ("audio.menuinvisible".equals(e.getKey())) {
showAudioMenu(!Boolean.parseBoolean(e.getNewValue().toString()));
}