Makergear electronics case lock

I just got my M2 and one thing that was bugging me was the case lid kept popping off. I thought about drilling a small hole that I could insert a pin in to prevent it from sliding. But I decided I wanted to find a solution I could print. Here it is.