From c7b2484cb278ad343168aa3d696509de4d3d1a4a Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 5 Nov 2017 20:33:01 +0100 Subject: [PATCH] fix typos --- src/fenrir/commands/commands/00_init_commands.py | 2 +- src/fenrir/commands/commands/export_clipboard_to_file.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fenrir/commands/commands/00_init_commands.py b/src/fenrir/commands/commands/00_init_commands.py index 6ab81bb1..4a573ca0 100644 --- a/src/fenrir/commands/commands/00_init_commands.py +++ b/src/fenrir/commands/commands/00_init_commands.py @@ -15,7 +15,7 @@ class command(): def initialize(self, environment): self.env = environment # clipboard - self.env['runtime']['memoryManager'].addIndexList(self, 'clipboardHistory', self.env['runtime']['settingsManager'].getSettingAsInt('general', 'numberOfClipboards')) + self.env['runtime']['memoryManager'].addIndexList('clipboardHistory', self.env['runtime']['settingsManager'].getSettingAsInt('general', 'numberOfClipboards')) def shutdown(self): pass def getDescription(self): diff --git a/src/fenrir/commands/commands/export_clipboard_to_file.py b/src/fenrir/commands/commands/export_clipboard_to_file.py index 914de532..0e1078ac 100644 --- a/src/fenrir/commands/commands/export_clipboard_to_file.py +++ b/src/fenrir/commands/commands/export_clipboard_to_file.py @@ -28,10 +28,10 @@ class command(): self.env['runtime']['outputManager'].presentText(_('clipboard empty'), interrupt=True) return clipboard = self.env['runtime']['memoryManager'].getIndexListElement('clipboardHistory') - clipboardFile.write(clipboard) - clipboardFile.close() - os.chmod(clipboardFilePath, 0o666) - self.env['runtime']['outputManager'].presentText(_('clipboard exported to file'), interrupt=True) + clipboardFile.write(clipboard) + clipboardFile.close() + os.chmod(clipboardFilePath, 0o666) + self.env['runtime']['outputManager'].presentText(_('clipboard exported to file'), interrupt=True) except Exception as e: self.env['runtime']['debug'].writeDebugOut('export_clipboard_to_file:run: Filepath:'+ clipboardFile +' trace:' + str(e),debug.debugLevel.ERROR)