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:
monsta 2015-07-14 13:14:41 +03:00
parent e75584f2e6
commit 4968f9a9de
1 changed files with 11 additions and 12 deletions

View File

@ -88,23 +88,22 @@ class WindowHelper:
paths.append(gfile.get_parent())
# 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:
msg = bus.send_sync('/plugins/filebrowser', 'get_root')
try:
msg = bus.send_sync('/plugins/filebrowser', 'get_root')
if msg:
uri = msg.get_value('uri')
if msg:
uri = msg.get_value('uri')
if uri:
gfile = gio.File(uri)
if uri:
gfile = gio.File(uri)
if gfile.is_native():
paths.append(gfile)
if gfile.is_native():
paths.append(gfile)
except StandardError:
pass
except StandardError:
pass
# Recent documents
paths.append(RecentDocumentsDirectory(screen=self._window.get_screen()))