We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0496659 commit 1cfbc60Copy full SHA for 1cfbc60
QBRssManager.py
@@ -837,8 +837,13 @@ def on_import_from_share_file_action(self):
837
def on_export_to_share_file_action(self):
838
logger.info('导出规则到文件进行分享')
839
# 这里用完整路径可以设置默认名称
840
+ default_file_name = 'rss订阅规则分享.json'
841
+ group_name = g.data_groups[g.current_data_list_index]['name']
842
+ if group_name:
843
+ default_file_name = f"rss订阅规则分享-{group_name}.json"
844
+
845
file_info = QFileDialog.getSaveFileName(self, "选择输出目录文件",
- os.path.join(resource_path('.'), 'rss订阅规则分享.json'),
846
+ os.path.join(resource_path('.'), default_file_name),
847
"json 文件(*.json)")
848
share_file_path = file_info[0]
849
logger.info(f'导出文件 {share_file_path}')
0 commit comments