private void toggleMap(){
  setMapVisible(!minimapW.isVisible());
}

private void toggleMap ( ) { setMapVisible ( ! minimapW . isVisible ( ) ) ; }
toggles the minimap window also , toggles the minimap enabled setting
