mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
added inline states for togglers in action list/tree...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
128ba44778
commit
d6f1e40844
@ -349,6 +349,7 @@ module.URLHistoryFSWriter = core.ImageGridFeatures.Feature({
|
||||
],
|
||||
|
||||
config: {
|
||||
// XXX should we add a toggler action to toggle this?
|
||||
'url-history-push-to-top-on-save': false,
|
||||
},
|
||||
|
||||
|
||||
@ -38,7 +38,11 @@ var makeActionLister = function(list, filter, pre_order){
|
||||
pre_order = typeof(filter) == typeof(true) ? filter : pre_order
|
||||
filter = typeof(filter) == typeof(true) ? null : filter
|
||||
|
||||
return function(path){
|
||||
return function(path, inline_state){
|
||||
inline_state = inline_state == null ?
|
||||
that.config['actions-list-show-toggler-state-inline']
|
||||
: inline_state
|
||||
|
||||
var that = this
|
||||
var paths = this.getPath()
|
||||
var actions = {}
|
||||
@ -91,7 +95,9 @@ var makeActionLister = function(list, filter, pre_order){
|
||||
}
|
||||
|
||||
states.forEach(function(state){
|
||||
actions[k +'/'+ state + (cur == state ? ' *': '')] =
|
||||
//actions[k +'/'+ state + (cur == state ? ' *': '')] =
|
||||
actions[k +(inline_state ? (' ('+ cur +')') : '')
|
||||
+'/'+ state + (cur == state ? ' *': '')] =
|
||||
function(){
|
||||
that[n](state)
|
||||
}
|
||||
@ -138,6 +144,8 @@ var BrowseActionsActions = actions.Actions({
|
||||
'Navigate/',
|
||||
],
|
||||
|
||||
'actions-list-show-toggler-state-inline': true,
|
||||
|
||||
'browse-actions-settings': {
|
||||
showDisabled: false,
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user