From ef551bff56ec94b53b5f2d941d02d79ef35d6d85 Mon Sep 17 00:00:00 2001 From: xxe Date: Wed, 9 Nov 2022 12:39:14 +0800 Subject: [PATCH] 1 --- HKCardOUT/ViewModels/RootViewModel.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/HKCardOUT/ViewModels/RootViewModel.cs b/HKCardOUT/ViewModels/RootViewModel.cs index 9de985a..f05a157 100644 --- a/HKCardOUT/ViewModels/RootViewModel.cs +++ b/HKCardOUT/ViewModels/RootViewModel.cs @@ -173,6 +173,7 @@ namespace HKCardOUT.ViewModels try { var SC = System.Windows.Forms.Screen.AllScreens.Count(); + if (SC < 3) return; for (int i = 0; i < SC; i++) { var win = new AdWindow(Ad[i].Ad, i);