Group Switch mode now disables when no windows are selected for the group (i.e. mode is enabled for a group of 0 windows).

This commit is contained in:
Lorenz Cuno Klopfenstein 2010-10-05 22:56:21 +02:00
parent 7128038eb0
commit 0b1188e2ad
2 changed files with 2 additions and 4 deletions

View file

@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Windows.Forms;
using OnTopReplica.Native;
using OnTopReplica.MessagePumpProcessors;
using OnTopReplica.Native;
namespace OnTopReplica {
class MessagePumpManager : IDisposable {

View file

@ -46,7 +46,7 @@ namespace OnTopReplica.SidePanels {
public override void OnClosing(MainForm form) {
base.OnClosing(form);
if (_enableOnClose) {
if (_enableOnClose && listWindows.SelectedItems.Count > 0) {
List<WindowHandle> ret = new List<WindowHandle>();
foreach (ListViewItem i in listWindows.SelectedItems) {
ret.Add((WindowHandle)i.Tag);