For future reference, the silly idea that hats should not be worn inside is a purely Eastern idea. Out here in the West, we know better.
I have a book about 1880s cowboys in Wyoming. The author tells a story about a cowboy who took a train trip back East. For some reason, he didn’t want anybody to know he was a cowboy, so he bought a different type of hat.
The first morning on the train, another traveler asked him “Where do you punch cows?” He replied, “How did you know that I’m a cowpoke?” The answer–(emphasis added)–“Because when you got up this morning, the first thing you did was put on your hat.”