mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Use "window.close" action instead of "close-request"
This commit is contained in:
@@ -77,7 +77,7 @@ function handleAction(action, window)
|
||||
player.playlistWidget.changeRepeatMode();
|
||||
break;
|
||||
case 'quit':
|
||||
clapperWidget.root.emit('close-request');
|
||||
clapperWidget.activate_action('window.close', null);
|
||||
break;
|
||||
case 'toggle_play':
|
||||
case 'next_chapter':
|
||||
|
@@ -34,9 +34,7 @@ class ClapperPlaylistWidget extends Gtk.ListBox
|
||||
const itemIndex = item.get_index();
|
||||
|
||||
if(itemIndex === this.activeRowId) {
|
||||
const root = this.get_root();
|
||||
root.emit('close-request');
|
||||
|
||||
this.activate_action('window.close', null);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user