[Approved] New actions: power off, suspend, hibernate (1 Viewer)

ajp8164

Portal Pro
January 9, 2008
575
1,166
Atlanta, GA
Home Country
United States of America United States of America
This patch adds three new GUI actions; power off, suspend, hibernate. Without this patch the skinner must use a dialog for the user to select from one of these choices. This patch allows the skinner to create buttons on the main interface and use the <action> tag to specify one of these three choices, thereby bypassing the dialog. The dialog action remains unchanged (action id = 99). Also, there are existing actions for quit (exit MP) (action id = 97) and reboot (action id = 98) - these remain unchanged. The new action id's are:

power off = 991
suspend = 992
hibernate = 993

Each action id presents a yes/no confirmation dialog upon execution.

This patch also adds strings in the strings_en.xml file for the yes/no confirmation dialog (translations will be required for other languages).

This patch affects Action.cs (core.dll) and MediaPortal.cs (MediaPortal.exe).
 

Attachments

  • shutdown_actions.patch
    30.7 KB

Users who are viewing this thread

Top Bottom