diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-27 20:52:25 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-27 20:52:25 -0300 |
commit | 0bb7114b612ffc46aeb83c34f841872a9cb00023 (patch) | |
tree | 799fcdd92bcde4b03725c490493aeed46d975242 /packages | |
parent | 8763d20885faf23c34413758c80a40657d01354a (diff) | |
download | finder-0bb7114b612ffc46aeb83c34f841872a9cb00023.tar.gz finder-0bb7114b612ffc46aeb83c34f841872a9cb00023.tar.bz2 |
Fix: plugin: opener: searcher: var name change
Diffstat (limited to 'packages')
-rw-r--r-- | packages/finder/main.py | 10 | ||||
-rw-r--r-- | packages/finder/plugin/searcher/file/name.py | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/finder/main.py b/packages/finder/main.py index 41bca79..bd593a4 100644 --- a/packages/finder/main.py +++ b/packages/finder/main.py @@ -66,7 +66,7 @@ class FinderMain(): await asyncio.sleep(0.01) # Update the list of items - self.update_list_buffer(await self.searcher.finder(cache=False)) + self.update_list_buffer(await self.searcher.finder(cached=False)) # Update the current selection self.change('') @@ -199,8 +199,8 @@ class FinderMain(): ] ) - async def load(self, cache=False): - self.update_list_buffer(await self.searcher.finder(cache=cache)) + async def load(self, cached=False): + self.update_list_buffer(await self.searcher.finder(cached=cache)) self.state['loading'] = False @@ -244,10 +244,10 @@ class FinderMain(): app = tg.create_task(self.app.run_async()) # Load initial buffer content from cache, if available - cache = tg.create_task(self.load(cache=True)) + cache = tg.create_task(self.load(cached=True)) # Load initial buffer content - load = tg.create_task(self.load(cache=False)) + load = tg.create_task(self.load(cached=False)) return True diff --git a/packages/finder/plugin/searcher/file/name.py b/packages/finder/plugin/searcher/file/name.py index 6ea97b7..9f35ea5 100644 --- a/packages/finder/plugin/searcher/file/name.py +++ b/packages/finder/plugin/searcher/file/name.py @@ -46,9 +46,9 @@ class FinderPluginFileNameSearcher(): self.path = path self.cache = os.path.join(cache_dir, 'plugin', 'searcher', 'file', os.path.abspath(self.path).replace(os.sep, '_') + '.json') - async def finder(self, cache = False): + async def finder(self, cached = False): # Check existing cache - if cache: + if cached: if os.path.exists(self.cache) and os.path.isfile(self.cache): with open(self.cache, 'r') as f: # Update the folder list in the background |