default tgui alert input handling (#16241)

* default handling

* do not push that

* fix

* .

* .
This commit is contained in:
Kashargul
2024-09-01 20:27:26 +02:00
committed by GitHub
parent 6d0077890c
commit 2f19f66cc5
99 changed files with 248 additions and 173 deletions
@@ -60,7 +60,7 @@
var/datum/computer_file/data/F = computer.find_file_by_uid(open_file)
if(!F || !istype(F))
return
if(F.do_not_edit && (tgui_alert(usr, "WARNING: This file is not compatible with editor. Editing it may result in permanently corrupted formatting or damaged data consistency. Edit anyway?", "Incompatible File", list("No", "Yes")) == "No"))
if(F.do_not_edit && (tgui_alert(usr, "WARNING: This file is not compatible with editor. Editing it may result in permanently corrupted formatting or damaged data consistency. Edit anyway?", "Incompatible File", list("No", "Yes")) != "Yes"))
return
var/oldtext = html_decode(F.stored_data)