template fix, logic fix, file monitor change
This commit is contained in:
parent
918eec1053
commit
f79aa4e852
|
@ -21,7 +21,7 @@ class Main:
|
||||||
self._event_system = event_system
|
self._event_system = event_system
|
||||||
self._socket_id = socket_id
|
self._socket_id = socket_id
|
||||||
self._gtk_plug = Gtk.Plug.new(self._socket_id)
|
self._gtk_plug = Gtk.Plug.new(self._socket_id)
|
||||||
button = Gtk.Button(label=label=self._plugin_name)
|
button = Gtk.Button(label=self._plugin_name)
|
||||||
self._message = None
|
self._message = None
|
||||||
self._time_out = 5
|
self._time_out = 5
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,6 @@ class Controller(UIMixin, KeyboardSignalsMixin, IPCSignalsMixin, ExceptionHookMi
|
||||||
|
|
||||||
def do_action_from_menu_controls(self, widget, eventbutton):
|
def do_action_from_menu_controls(self, widget, eventbutton):
|
||||||
action = widget.get_name()
|
action = widget.get_name()
|
||||||
self.ctrlDown = True
|
|
||||||
self.hide_context_menu()
|
self.hide_context_menu()
|
||||||
self.hide_new_file_menu()
|
self.hide_new_file_menu()
|
||||||
self.hide_edit_file_menu()
|
self.hide_edit_file_menu()
|
||||||
|
|
|
@ -65,7 +65,7 @@ class WidgetFileActionMixin:
|
||||||
def dir_watch_updates(self, file_monitor, file, other_file=None, eve_type=None, data=None):
|
def dir_watch_updates(self, file_monitor, file, other_file=None, eve_type=None, data=None):
|
||||||
if eve_type in [Gio.FileMonitorEvent.CREATED, Gio.FileMonitorEvent.DELETED,
|
if eve_type in [Gio.FileMonitorEvent.CREATED, Gio.FileMonitorEvent.DELETED,
|
||||||
Gio.FileMonitorEvent.RENAMED, Gio.FileMonitorEvent.MOVED_IN,
|
Gio.FileMonitorEvent.RENAMED, Gio.FileMonitorEvent.MOVED_IN,
|
||||||
Gio.FileMonitorEvent.MOVED_OUT, Gio.FileMonitorEvent.CHANGES_DONE_HINT]:
|
Gio.FileMonitorEvent.MOVED_OUT]:
|
||||||
if debug:
|
if debug:
|
||||||
print(eve_type)
|
print(eve_type)
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue