Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit e4f14d6

Browse files
committed
updater sample added to tree and minor change to allow updater to close any old editor windows
1 parent f598b5f commit e4f14d6

File tree

3 files changed

+1166
-3
lines changed

3 files changed

+1166
-3
lines changed

Component/PythonComponentAttributes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace GhPython.Component
1010
{
11-
class PythonComponentAttributes : GH_ComponentAttributes
11+
public class PythonComponentAttributes : GH_ComponentAttributes
1212
{
1313
private PythonScriptForm m_form;
1414

@@ -57,7 +57,7 @@ public bool TryGetEditor(out Form editor)
5757
return true;
5858
}
5959

60-
public void DisableLinkedEditor(bool close)
60+
internal void DisableLinkedEditor(bool close)
6161
{
6262
if (close && m_form != null && !m_form.IsDisposed)
6363
m_form.Disable();

Forms/PythonScriptForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ protected override void OnClosing(CancelEventArgs e)
244244
{
245245
if (_component != null)
246246
{
247-
var attributes = _component.Attributes as PythonComponentAttributes;
247+
var attributes = _component.Attributes;
248248

249249
if (attributes != null)
250250
{

0 commit comments

Comments
 (0)