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();
|
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':
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user