mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-08 16:02:48 +00:00
Misc PDA code improvements (#70555)
* How to conflict with PRs: A guide * Removes unnecessary support for the now-removed job disks from Tablet's TGUI menu, and tablet's ui_act. * Adds autodoc comments to computer files * Removes the unused 'unsendable' var on computer files * Generally improves code on tablets, now process isn't looping through every idle thread twice! * Moves the check for program in idle_threads above checking if supported by hardware, because it's already running, so there's no need to check. * eh * revert a scipaper change
This commit is contained in:
@@ -203,8 +203,8 @@
|
||||
var/obj/item/computer_hardware/card_slot/card_holder = computer.all_components[MC_CARD]
|
||||
if(card_holder)
|
||||
ID = card_holder.GetID()
|
||||
generate_network_log("Connection closed -- Program ID: [filename] User:[ID?"[ID.registered_name]":"None"]")
|
||||
return 1
|
||||
generate_network_log("Connection closed -- Program ID: [filename] User:[ID ? "[ID.registered_name]" : "None"]")
|
||||
return TRUE
|
||||
|
||||
/datum/computer_file/program/ui_interact(mob/user, datum/tgui/ui)
|
||||
ui = SStgui.try_update_ui(user, src, ui)
|
||||
@@ -248,7 +248,6 @@
|
||||
if(user && istype(user))
|
||||
computer.ui_interact(user) // Re-open the UI on this computer. It should show the main screen now.
|
||||
|
||||
|
||||
/datum/computer_file/program/ui_host()
|
||||
if(computer.physical)
|
||||
return computer.physical
|
||||
|
||||
Reference in New Issue
Block a user