mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-20 20:33:06 +12:00
Issue #43: fixed command line override for "restore last window" feature.
This commit is contained in:
parent
39a33a4a67
commit
e66be3db45
|
@ -67,11 +67,17 @@ namespace OnTopReplica.StartupOptions {
|
|||
var cmdOptions = new NDesk.Options.OptionSet()
|
||||
.Add<long>("windowId=", "Window handle ({HWND}) to be cloned.", id => {
|
||||
options.WindowId = new IntPtr(id);
|
||||
options.WindowTitle = null;
|
||||
options.WindowClass = null;
|
||||
})
|
||||
.Add<string>("windowTitle=", "Partial {TITLE} of the window to be cloned.", s => {
|
||||
options.WindowId = null;
|
||||
options.WindowTitle = s;
|
||||
options.WindowClass = null;
|
||||
})
|
||||
.Add<string>("windowClass=", "{CLASS} of the window to be cloned.", s => {
|
||||
options.WindowId = null;
|
||||
options.WindowTitle = null;
|
||||
options.WindowClass = s;
|
||||
})
|
||||
.Add("v|visible", "If set, only clones windows that are visible.", s => {
|
||||
|
|
Loading…
Reference in a new issue