From 70b40e2fd39f9f39b20846ae93f29fbe19b518f8 Mon Sep 17 00:00:00 2001 From: Karolis Date: Fri, 27 Dec 2019 13:26:48 +0200 Subject: [PATCH] Makes computer main UI close properly, on shutdown (#7815) what says --- .../modular_computers/computers/modular_computer/core.dm | 2 +- html/changelogs/example copy.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/example copy.yml diff --git a/code/modules/modular_computers/computers/modular_computer/core.dm b/code/modules/modular_computers/computers/modular_computer/core.dm index ba4abc9d1fb..b0a03c91f04 100644 --- a/code/modules/modular_computers/computers/modular_computer/core.dm +++ b/code/modules/modular_computers/computers/modular_computer/core.dm @@ -169,7 +169,7 @@ idle_threads.Remove(P) if(loud) visible_message("\The [src] shuts down.") - SSvueui.close_uis(active_program) + SSvueui.close_uis(src) enabled = 0 update_icon() diff --git a/html/changelogs/example copy.yml b/html/changelogs/example copy.yml new file mode 100644 index 00000000000..8627857b1da --- /dev/null +++ b/html/changelogs/example copy.yml @@ -0,0 +1,4 @@ +author: Karolis2011 +delete-after: True +changes: + - bugfix: "Fixes computers so there main UI closes on shutdown."