[meld: 3/5] dirdiff: Simplify folder reversing logic
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld: 3/5] dirdiff: Simplify folder reversing logic
- Date: Sat, 9 Apr 2022 23:19:04 +0000 (UTC)
commit 94c2c54c77abe8ca21ddcc94368f5bb47ad89512
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Apr 10 09:06:14 2022 +1000
dirdiff: Simplify folder reversing logic
meld/dirdiff.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index 88aef33b..14a43264 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -1582,9 +1582,7 @@ class DirDiff(Gtk.VBox, tree.TreeviewCommon, MeldDoc):
self.copy_selected(1)
def action_swap(self, *args):
- folder_x = self.folders[0]
- self.folders[0] = self.folders[1]
- self.folders[1] = folder_x
+ self.folders.reverse()
self.refresh()
def action_delete(self, *args):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]