I'm not a smoker myself, but I have no objection to smoking in the cockpit, unless of course it is from electical equipment.
It's a demanding habit, and smokers who are denied this are like basket cases after a few hours. I've seen this in my crews. They become useless.
I'd rather have a real crew with me.