File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,11 @@ export default class MyExtension extends Extension {
425425 this . _menuOpenStateChangedId = 0 ;
426426 }
427427
428+ if ( this . _suspendThenHibernateMenuItemId ) {
429+ this . _suspendThenHibernateMenuItem . disconnect ( this . _suspendThenHibernateMenuItemId ) ;
430+ this . _suspendThenHibernateMenuItemId = 0 ;
431+ }
432+
428433 if ( this . _hybridSleepMenuItemId ) {
429434 this . _hybridSleepMenuItem . disconnect ( this . _hybridSleepMenuItemId ) ;
430435 this . _hybridSleepMenuItemId = 0 ;
@@ -435,6 +440,11 @@ export default class MyExtension extends Extension {
435440 this . _hibernateMenuItemId = 0 ;
436441 }
437442
443+ if ( this . _suspendThenHibernateMenuItem ) {
444+ this . _suspendThenHibernateMenuItem . destroy ( ) ;
445+ this . _suspendThenHibernateMenuItem = 0 ;
446+ }
447+
438448 if ( this . _hybridSleepMenuItem ) {
439449 this . _hybridSleepMenuItem . destroy ( ) ;
440450 this . _hybridSleepMenuItem = 0 ;
You can’t perform that action at this time.
0 commit comments