Update Profile Switcher script
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
-- name = "Profile Switcher"
|
-- name = "Profile Switcher"
|
||||||
-- version = "1.0"
|
-- version = "1.1"
|
||||||
-- description = "Tap: restore profile / Long-press: save to profile"
|
-- description = "Tap: restore profile / Long-press: save to profile"
|
||||||
-- type = "widget"
|
-- type = "widget"
|
||||||
-- author = "Marcus Johansson"
|
-- author = "Marcus Johansson"
|
||||||
@@ -22,7 +22,7 @@ function on_long_click(idx)
|
|||||||
profile = profs[idx]
|
profile = profs[idx]
|
||||||
title = 'Save to "'..profile..'" ?'
|
title = 'Save to "'..profile..'" ?'
|
||||||
text = 'Do you want to save the current screen state to the "'..profile..'" profile ?'
|
text = 'Do you want to save the current screen state to the "'..profile..'" profile ?'
|
||||||
ui:show_dialog(title, text, "Yes", "Cancel")
|
dialogs:show_dialog(title, text, "Yes", "Cancel")
|
||||||
end
|
end
|
||||||
|
|
||||||
function on_dialog_action(value)
|
function on_dialog_action(value)
|
||||||
|
|||||||
Reference in New Issue
Block a user