reordered if
This commit is contained in:
@@ -42,17 +42,13 @@ def run(item=None):
|
|||||||
logger.info(item.tostring())
|
logger.info(item.tostring())
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if item.action == "editor_keymap":
|
|
||||||
from platformcode import editor_keymap
|
|
||||||
return editor_keymap.start()
|
|
||||||
|
|
||||||
# If item has no action, stops here
|
# If item has no action, stops here
|
||||||
if item.action == "":
|
if item.action == "":
|
||||||
logger.info("Item sin accion")
|
logger.info("Item sin accion")
|
||||||
return
|
return
|
||||||
|
|
||||||
# Action for main menu in channelselector
|
# Action for main menu in channelselector
|
||||||
if item.action == "getmainlist":
|
elif item.action == "getmainlist":
|
||||||
import channelselector
|
import channelselector
|
||||||
|
|
||||||
# # Check for updates only on first screen
|
# # Check for updates only on first screen
|
||||||
@@ -124,6 +120,10 @@ def run(item=None):
|
|||||||
play_from_library(item)
|
play_from_library(item)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
elif item.action == "editor_keymap":
|
||||||
|
from platformcode import editor_keymap
|
||||||
|
return editor_keymap.start()
|
||||||
|
|
||||||
# Action in certain channel specified in "action" and "channel" parameters
|
# Action in certain channel specified in "action" and "channel" parameters
|
||||||
else:
|
else:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user