Object invisible but not hidden

I am rigging with an armature and I was weight painting the mesh whilst in ‘view this object only’ mode… I came out of edit mode and ‘view this only’ mode to find that my armature is invisible (but still there in the outliner and such). If I select the armature via the properties window and go into its edit mode It becomes visible, but in object mode it is invisible even though x-ray is turned on. (I have also tried unhiding all with alt+H many times!)

I probably pressed something by accident and now it won’t return, please help me find it!

EDIT: I should also mention that I’ve checked all layers.

Ok I solved it… I had the armature hidden in pose mode, which also hid it in object mode but not in edit mode… my bad.

That’s pretty weird and unintuitive in my opinion though.