cef32b2
Specify the mode when resetting the dialog Hand-picked part of 378ed9c6423a801f552fdf8ff774f6b2b6b09897