It depends what you mean by takedown lever ...
Explaining it with a model in mind which is not equipped with a mag safety ...
cxm seemed to be pointing you in the right direction.
If the yellow sear deactivation lever is in the 'down' position (or pushed forward) it disconnects the sear from the striker.
If it's in the 'up' position (or pushed rearward, as it would be if a magazine were inserted into the mag well, since the mag would push the lever up & rearward back into the sear housing) it allows the sear to connect to the striker again.
However, racking the slide BEFORE you inserted a mag, when the lever was in the down position when the slide was racked, it meant the sear wasn't free to engage the striker. You weren't going to be able to dry-fire the gun even though you inserted mag after racking the slide ... UNTIL you racked the slide again after having the (EMPTY) mag in the (EMPTY) gun.
BTW, the 'takedown lever' is the flat lever you can see on the left, outside of the frame which must be rotated 'down', clockwise, for field-stripping, and which must be rotated 'up', or counter-clockwise, after the slide is reinstalled on the frame.
Now, I may be reading your post wrong, but I suspect you're talking about the sear deactivation lever.
If so, and it remains in the down position when you rack the slide after reassembly, it won't allow the sear to catch and hold the striker's foot. The lever will either have to be pushed up & back or else a mag inserted in order for the sear to once again be 'activated', so to speak, meaning be able to catch the striker's foot.
This means that if you racked the slide with the lever in the down position the striker wasn't caught and held ... and THEN when you inserted the (EMPTY) mag and tried to pull the trigger (on an EMPTY gun) ... nothing happened. No click. The slide had been racked before the sear had been positioned to be able to catch and hold the striker. No joy.
However, when you racked the slide again, but with the mag now in place (meaning the mag had pushed the lever up and back) this time the sear was positioned to be able to catch the striker, and when you pulled the trigger you were able to dry-fire the gun. Click.
I'm sorry if I'm not explaining this clearly, or misunderstood you, but I'm a little distracted by some contractors and some other chores I'm trying to get done between stopping by the computer.