mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected the "suspendall" and "resumeall" Tcl scripts so that they
do not fail when using "magicexec -dnull" (because there are no layout windows, there is nothing to suspend and resume).
This commit is contained in:
@@ -15,6 +15,7 @@ proc magic::suspendall {} {
|
||||
global Winopts
|
||||
if {[info commands winfo] != ""} {
|
||||
foreach window [magic::windownames layout] {
|
||||
if {$window == 0} {continue}
|
||||
set framename [winfo toplevel $window]
|
||||
if {$framename == "."} {
|
||||
set framename $window
|
||||
@@ -30,6 +31,7 @@ proc magic::resumeall {} {
|
||||
global Winopts
|
||||
if {[info commands winfo] != ""} {
|
||||
foreach window [magic::windownames layout] {
|
||||
if {$window == 0} {continue}
|
||||
set framename [winfo toplevel $window]
|
||||
if {$framename == "."} {
|
||||
set framename $window
|
||||
|
||||
Reference in New Issue
Block a user