From cf9d2082ef5fd84c2da9d2c710c4fa6b0cf0417e Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Thu, 21 Feb 2019 10:44:37 +0300 Subject: [PATCH] Fix codacy issues --- gui/copySelectDialog.py | 4 ++-- gui/mainFrame.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/copySelectDialog.py b/gui/copySelectDialog.py index 49ebb6ac1..26910f466 100644 --- a/gui/copySelectDialog.py +++ b/gui/copySelectDialog.py @@ -78,7 +78,7 @@ class CopySelectDialog(wx.Dialog): bsizer = wx.BoxSizer(wx.VERTICAL) self.options[formatId] = {} - for optId, optName, optDesc, optDefault in formatOptions: + for optId, optName, optDesc, _ in formatOptions: checkbox = wx.CheckBox(self, -1, optName) self.options[formatId][optId] = checkbox if self.settings['options'].get(formatId, {}).get(optId, defaultFormatOptions.get(formatId, {}).get(optId)): @@ -104,7 +104,7 @@ class CopySelectDialog(wx.Dialog): def toggleOptions(self): for formatId in self.options: - for optId, checkbox in self.options[formatId].items(): + for checkbox in self.options[formatId].values(): checkbox.Enable(self.GetSelected() == formatId) def GetSelected(self): diff --git a/gui/mainFrame.py b/gui/mainFrame.py index a37f1afd0..d5bc8f0e9 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -747,7 +747,7 @@ class MainFrame(wx.Frame): CopySelectDialog.copyFormatEfs: self.clipboardEfs} dlg = CopySelectDialog(self) btnPressed = dlg.ShowModal() - + if btnPressed == wx.ID_OK: selected = dlg.GetSelected() options = dlg.GetOptions()