mirror of
https://github.com/derrod/legendary.git
synced 2025-08-28 04:21:01 +00:00
2021-02-24_19-28-57
This commit is contained in:
parent
ac13401ca5
commit
4a7c90ad21
|
@ -12,7 +12,7 @@ from multiprocessing import freeze_support, Queue as MPQueue
|
|||
|
||||
import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
from gi.repository import Gtk, GLib
|
||||
from gi.repository import Gtk, GLib, Gdk
|
||||
|
||||
import legendary.core
|
||||
import legendary.cli
|
||||
|
@ -988,6 +988,7 @@ class main_window(Gtk.Window):
|
|||
self.scroll.add(g)
|
||||
|
||||
def context_menu(self, selection, event):
|
||||
if event.type == Gdk.EventType.BUTTON_PRESS and event.button == 3:
|
||||
model, treeiter = selection.get_selection().get_selected()
|
||||
if treeiter is not None:
|
||||
app_name = model[treeiter][0]
|
||||
|
|
Loading…
Reference in a new issue