GUI: make code mapping preference persistent