The influence of metallicity on a combined stellar and disk evolution