overlay manager: remove spurious position reset logs

This commit is contained in:
Adam
2022-05-18 21:01:35 -04:00
parent f201c6f63b
commit ebd8483a37

View File

@@ -320,9 +320,10 @@ public class OverlayManager
{
overlay.setPreferredLocation(location);
}
else
else if (location != null)
{
log.info("Resetting preferred location of non-movable overlay {} (class {})", overlay.getName(), overlay.getClass().getName());
overlay.setPreferredLocation(null);
saveOverlayLocation(overlay);
}
@@ -332,9 +333,10 @@ public class OverlayManager
{
overlay.setPreferredPosition(position);
}
else
else if (position != null)
{
log.info("Resetting preferred position of non-snappable overlay {} (class {})", overlay.getName(), overlay.getClass().getName());
overlay.setPreferredPosition(null);
saveOverlayPosition(overlay);
}
}