quickopen plugin: remove wrong version check inherited from gedit
this should make quickopen dialog (Ctrl-Alt-O) recognize the files from the currently selected dir in filebrowser plugin.
This commit is contained in:
parent
e75584f2e6
commit
4968f9a9de
|
@ -88,23 +88,22 @@ class WindowHelper:
|
||||||
paths.append(gfile.get_parent())
|
paths.append(gfile.get_parent())
|
||||||
|
|
||||||
# File browser root directory
|
# File browser root directory
|
||||||
if pluma.version[0] > 2 or (pluma.version[0] == 2 and (pluma.version[1] > 26 or (pluma.version[1] == 26 and pluma.version[2] >= 2))):
|
bus = self._window.get_message_bus()
|
||||||
bus = self._window.get_message_bus()
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
msg = bus.send_sync('/plugins/filebrowser', 'get_root')
|
msg = bus.send_sync('/plugins/filebrowser', 'get_root')
|
||||||
|
|
||||||
if msg:
|
if msg:
|
||||||
uri = msg.get_value('uri')
|
uri = msg.get_value('uri')
|
||||||
|
|
||||||
if uri:
|
if uri:
|
||||||
gfile = gio.File(uri)
|
gfile = gio.File(uri)
|
||||||
|
|
||||||
if gfile.is_native():
|
if gfile.is_native():
|
||||||
paths.append(gfile)
|
paths.append(gfile)
|
||||||
|
|
||||||
except StandardError:
|
except StandardError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Recent documents
|
# Recent documents
|
||||||
paths.append(RecentDocumentsDirectory(screen=self._window.get_screen()))
|
paths.append(RecentDocumentsDirectory(screen=self._window.get_screen()))
|
||||||
|
|
Loading…
Reference in New Issue