toolbar: disable recent session submenu when empty
This commit is contained in:
parent
e71eef39bb
commit
6511ba7d47
1 changed files with 2 additions and 1 deletions
|
|
@ -32,7 +32,8 @@ var menuEntries = [
|
|||
},
|
||||
{
|
||||
label: locales('file_open_recent'),
|
||||
action: recentSessions
|
||||
action: recentSessions,
|
||||
class: ()=>{return !recentSessions.length ? 'disabled' :''}
|
||||
},
|
||||
{
|
||||
separator: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue