mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-06-02 02:24:32 +12:00
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:
parent
7128038eb0
commit
0b1188e2ad
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue