tabs: correctly save current tabs visibility flag

Fix: #45