Skip to content

Commit 47e1338

Browse files
committed
exposed "clear session" menu command in examples.
1 parent 7732724 commit 47e1338

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

examples/hotkeys/hotkey_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def save_session_as(graph):
8686
graph.save_session(file_path)
8787

8888

89-
def new_session(graph):
89+
def clear_session(graph):
9090
"""
9191
Prompts a warning dialog to new a node graph session.
9292
"""

examples/hotkeys/hotkeys.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
"function_name":"import_session",
1818
"shortcut":""
1919
},
20+
{
21+
"type":"command",
22+
"label":"Clear Session...",
23+
"file":"../examples/hotkeys/hotkey_functions.py",
24+
"function_name":"clear_session",
25+
"shortcut":""
26+
},
2027
{
2128
"type":"command",
2229
"label":"Save...",

0 commit comments

Comments
 (0)