Skip to content

Commit 5e85892

Browse files
committed
Fixed selection monitors for Window mode.
1 parent f114684 commit 5e85892

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AwesomeWallpaper/Views/SettingsView.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Linq;
34
using System.Windows;
45
using System.Windows.Interop;
56
using System.Windows.Media.Imaging;
@@ -116,7 +117,7 @@ private void ButtonOk_Click(object sender, RoutedEventArgs e)
116117

117118
if (TabControlMain.SelectedIndex == 6 || (TabControlMain.SelectedIndex == 0 && viewModel.WallpaperType == WallpaperType.Window))
118119
{
119-
if (viewModel.Monitor == null)
120+
if (viewModel.Monitor == null && viewModel.Monitors.Count() > 2)
120121
{
121122
MessageBox.Show("You should select only one monitor on the \"General\" tab.", "Attention");
122123
viewModel.KeepOpened = true;

0 commit comments

Comments
 (0)