(source, name) => (get_source, get_name)
This commit is contained in:
parent
49bd55b995
commit
f8b077f376
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ args = {
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
def source():
|
def get_source():
|
||||||
logger.info("Uploading contents of clipboard")
|
logger.info("Uploading contents of clipboard")
|
||||||
return Raw("txt", pyclip.paste())
|
return Raw("txt", pyclip.paste())
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ def init():
|
||||||
logger.fatal(f"Error: 'plugins.latest.directory => {config.directory}' is not a directory")
|
logger.fatal(f"Error: 'plugins.latest.directory => {config.directory}' is not a directory")
|
||||||
config.directory = directory
|
config.directory = directory
|
||||||
|
|
||||||
def source():
|
def get_source():
|
||||||
key = os.path.getmtime
|
key = os.path.getmtime
|
||||||
files = config.directory.iterdir()
|
files = config.directory.iterdir()
|
||||||
selection = next(files)
|
selection = next(files)
|
||||||
|
|
Loading…
Reference in a new issue