diff options
| author | dam <dam@gudinoff> | 2022-04-17 10:04:21 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-04-17 10:04:21 +0000 |
| commit | ee31a9a3d387121030a5f4503adeac5816d7726f (patch) | |
| tree | 6e90c6601893895d7640f478f0cad402cc7590b4 | |
| parent | be7097c8fab45457c703a28aae44509e21e1cf2a (diff) | |
| download | surgery-log-ee31a9a3d387121030a5f4503adeac5816d7726f.tar.zst surgery-log-ee31a9a3d387121030a5f4503adeac5816d7726f.zip | |
Renamed app log export action.
| -rw-r--r-- | logic/menu.gd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/logic/menu.gd b/logic/menu.gd index 42b88d5..4b0b7b3 100644 --- a/logic/menu.gd +++ b/logic/menu.gd @@ -8,7 +8,7 @@ const menu_items: Array = [ { label = "Import Database", action = "import_database_action" }, { label = "Export Database", action = "export_database_action" }, { label = "Clear Database", action = "clear_database_action" }, - { label = "Export Log", action = "export_log_action" }, + { label = "Export App Log", action = "export_app_log_action" }, { label = "About", action = "about_action" }, ] const license_font_b612: String = "res://licenses/font_b612.txt" @@ -116,17 +116,17 @@ func clear_database(): database.save_database() -func export_log_action(): +func export_app_log_action(): file_picker.mode = FileDialog.MODE_SAVE_FILE file_picker.current_dir = OS.get_system_dir(OS.SYSTEM_DIR_DOWNLOADS) file_picker.filters = ["*.log"] file_picker.current_file = "" - file_picker.connect("file_selected", self, "export_log") + file_picker.connect("file_selected", self, "export_app_log") file_picker.show_modal(true) file_picker.invalidate() -func export_log(file_path: String): +func export_app_log(file_path: String): var error : int var file := File.new() |
