GLib idle add return effort 2

This commit is contained in:
itdominator 2023-12-31 22:35:33 -06:00
parent 4cafb7ff9f
commit 37e3265be5
5 changed files with 12 additions and 3 deletions

View File

@ -80,6 +80,8 @@ class FileActionSignalsMixin:
if [wid, tid] in [state.wid, state.tid]: if [wid, tid] in [state.wid, state.tid]:
self.set_bottom_labels(tab) self.set_bottom_labels(tab)
return False
def do_file_search(self, widget, eve = None): def do_file_search(self, widget, eve = None):
if not self.ctrl_down and not self.shift_down and not self.alt_down: if not self.ctrl_down and not self.shift_down and not self.alt_down:

View File

@ -218,6 +218,7 @@ class TabMixin(GridMixin):
def do_focused_click(self, button): def do_focused_click(self, button):
button.grab_focus() button.grab_focus()
button.clicked() button.clicked()
return False
def set_path_entry(self, button = None, eve = None): def set_path_entry(self, button = None, eve = None):
self.path_auto_filled = True self.path_auto_filled = True

View File

@ -225,6 +225,8 @@ class TabMixin(GridMixin):
button.grab_focus() button.grab_focus()
button.clicked() button.clicked()
return False
def set_path_entry(self, button = None, eve = None): def set_path_entry(self, button = None, eve = None):
self.path_auto_filled = True self.path_auto_filled = True
state = self.get_current_state() state = self.get_current_state()
@ -241,4 +243,4 @@ class TabMixin(GridMixin):
tab = self.get_fm_window(wid).get_tab_by_id(tid) tab = self.get_fm_window(wid).get_tab_by_id(tid)
tab.set_hiding_hidden(not tab.is_hiding_hidden()) tab.set_hiding_hidden(not tab.is_hiding_hidden())
tab.load_directory() tab.load_directory()
self.builder.get_object("refresh_tab").released() self.builder.get_object("refresh_tab").released()

View File

@ -119,6 +119,8 @@ class PluginsController:
plugin.reference.run() plugin.reference.run()
self._plugin_collection.append(plugin) self._plugin_collection.append(plugin)
return False
def reload_plugins(self, file: str = None) -> None: def reload_plugins(self, file: str = None) -> None:
logger.info(f"Reloading plugins...") logger.info(f"Reloading plugins...")
parent_path = os.getcwd() parent_path = os.getcwd()
@ -127,4 +129,4 @@ class PluginsController:
os.chdir(plugin.path) os.chdir(plugin.path)
plugin.reference.reload_package(f"{plugin.path}/plugin.py") plugin.reference.reload_package(f"{plugin.path}/plugin.py")
os.chdir(parent_path) os.chdir(parent_path)

View File

@ -89,6 +89,8 @@ class IPCServer(Singleton):
conn.close() conn.close()
break break
return False
def send_ipc_message(self, message: str = "Empty Data...") -> None: def send_ipc_message(self, message: str = "Empty Data...") -> None:
try: try:
@ -123,4 +125,4 @@ class IPCServer(Singleton):
logger.error("IPC Socket no longer valid.... Removing.") logger.error("IPC Socket no longer valid.... Removing.")
os.unlink(self._ipc_address) os.unlink(self._ipc_address)
except Exception as e: except Exception as e:
logger.error( repr(e) ) logger.error( repr(e) )