Use "window.close" action instead of "close-request"

This commit is contained in:
Rafał Dzięgiel
2021-04-28 12:15:20 +02:00
parent 4133557086
commit 71db78a0f6
2 changed files with 2 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ function handleAction(action, window)
player.playlistWidget.changeRepeatMode(); player.playlistWidget.changeRepeatMode();
break; break;
case 'quit': case 'quit':
clapperWidget.root.emit('close-request'); clapperWidget.activate_action('window.close', null);
break; break;
case 'toggle_play': case 'toggle_play':
case 'next_chapter': case 'next_chapter':

View File

@@ -34,9 +34,7 @@ class ClapperPlaylistWidget extends Gtk.ListBox
const itemIndex = item.get_index(); const itemIndex = item.get_index();
if(itemIndex === this.activeRowId) { if(itemIndex === this.activeRowId) {
const root = this.get_root(); this.activate_action('window.close', null);
root.emit('close-request');
return; return;
} }