From ad0c35d714ea9b8ed1aaf4b8dad13c99468d00bc Mon Sep 17 00:00:00 2001 From: Casper3667 <8396443+Casper3667@users.noreply.github.com> Date: Fri, 19 Dec 2025 21:21:31 +0100 Subject: [PATCH] Fixes the file manager program (#21674) The file manager did not properly go back to the file menu when it had loaded a program, without reloading the whole window. It was caused by it still having loaded the specific window, so the fix here is to simply make sure it is no longer loaded. --- .../file_system/programs/system/file_browser.dm | 6 ++++-- html/changelogs/FileManagementFix.yml | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 html/changelogs/FileManagementFix.yml diff --git a/code/modules/modular_computers/file_system/programs/system/file_browser.dm b/code/modules/modular_computers/file_system/programs/system/file_browser.dm index d538ff24baa..336156123ec 100644 --- a/code/modules/modular_computers/file_system/programs/system/file_browser.dm +++ b/code/modules/modular_computers/file_system/programs/system/file_browser.dm @@ -19,8 +19,7 @@ var/obj/item/computer_hardware/hard_drive/HDD var/obj/item/computer_hardware/hard_drive/portable/RHDD - if(error) - data["error"] = error + data["error"] = error if(open_file) var/datum/computer_file/data/file var/datum/computer_file/script/script @@ -44,6 +43,9 @@ if(!computer || !computer.hard_drive) data["error"] = "I/O ERROR: Unable to access hard drive." else + data["scriptdata"] = null + data["filedata"] = null + data["filename"] = null HDD = computer.hard_drive RHDD = computer.portable_drive var/list/files = list() diff --git a/html/changelogs/FileManagementFix.yml b/html/changelogs/FileManagementFix.yml new file mode 100644 index 00000000000..892c75aa4da --- /dev/null +++ b/html/changelogs/FileManagementFix.yml @@ -0,0 +1,6 @@ +author: TheGreyWolf + +delete-after: True + +changes: + - bugfix: "The close button on text files in the file management program now works again, so does the restart button within the same program."