Apply settings before saving style, otherwise unapplied settings are not written to qml file