fix: default to simplex for printing DuplexMode (#24489)

This commit is contained in:
Shelley Vohr 2020-07-13 08:31:39 -07:00 committed by GitHub
parent cbb47570bd
commit 91cdedfea9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2025,7 +2025,8 @@ void WebContents::Print(gin_helper::Arguments* args) {
}
// Duplex type user wants to use.
printing::mojom::DuplexMode duplex_mode;
printing::mojom::DuplexMode duplex_mode =
printing::mojom::DuplexMode::kSimplex;
options.Get("duplexMode", &duplex_mode);
settings.SetIntKey(printing::kSettingDuplexMode,
static_cast<int>(duplex_mode));