Skip to content

Commit 7f7ae0e

Browse files
committed
Export Macro to file: rename macro to file basename
Fix #82
1 parent 8639150 commit 7f7ae0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cdl/core/gui/panel/macro.py

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from __future__ import annotations
1010

11+
import os.path as osp
1112
import re
1213
from typing import TYPE_CHECKING
1314

@@ -539,6 +540,7 @@ def export_macro_to_file(
539540
if filename:
540541
with qt_try_loadsave_file(self.parent(), filename, "save"):
541542
Conf.main.base_dir.set(filename)
543+
macro.title = osp.basename(filename)
542544
macro.to_file(filename)
543545

544546
def import_macro_from_file(self, filename: str | None = None) -> int:

0 commit comments

Comments
 (0)