mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fix: default to simplex for printing DuplexMode (#24489)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user