From 02582212ecdf0da16ea0a1753c5db5926d4b32e2 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 18 Apr 2014 10:04:17 -0400 Subject: [PATCH] MainWindow: Fix indentation --- Alacarte/MainWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py index f52f216..7427752 100644 --- Alacarte/MainWindow.py +++ Alacarte/MainWindow.py @@ -239,7 +239,7 @@ class MainWindow(object): menu_tree.get_selection().select_path((0,)) else: parent = menus[iter][2] - file_name = util.getUniqueFileId('alacarte-made', '.directory') + file_name = util.getUniqueFileId('alacarte-made', '.directory') file_path = os.path.join(util.getUserDirectoryPath(), file_name) editor = DirectoryEditor(self.main_window, file_path) -- 2.18.1 From 92b9f5211d0d1c31d1a021df7076693b9b074c67 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 18 Apr 2014 10:04:41 -0400 Subject: [PATCH] MainWindow: Remove '== True' --- Alacarte/MainWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py index 7427752..485ffc5 100644 --- Alacarte/MainWindow.py +++ Alacarte/MainWindow.py @@ -249,7 +249,7 @@ class MainWindow(object): editor.run() def on_directory_created(self, editor, response): - if response == True: + if response: self.editor.insertExternalMenu(editor.file_name, editor.parent) def on_new_item_button_clicked(self, button): @@ -271,7 +271,7 @@ class MainWindow(object): editor.run() def on_item_created(self, editor, response): - if response == True: + if response: self.editor.insertExternalItem(editor.file_name, editor.parent) def on_new_separator_button_clicked(self, button): -- 2.18.1 From 849427c3f25e41a33f79c49cb5824eba73420773 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 18 Apr 2014 10:05:16 -0400 Subject: [PATCH] MainWindow: Fix whitespace --- Alacarte/MainWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py index 485ffc5..4239d24 100644 --- Alacarte/MainWindow.py +++ Alacarte/MainWindow.py @@ -245,7 +245,7 @@ class MainWindow(object): editor = DirectoryEditor(self.main_window, file_path) editor.file_name = file_name; editor.parent = parent.get_menu_id() - editor.connect ('response', self.on_directory_created) + editor.connect('response', self.on_directory_created) editor.run() def on_directory_created(self, editor, response): @@ -267,7 +267,7 @@ class MainWindow(object): editor = LauncherEditor(self.main_window, file_path) editor.file_name = file_name; editor.parent = parent.get_menu_id() - editor.connect ('response', self.on_item_created) + editor.connect('response', self.on_item_created) editor.run() def on_item_created(self, editor, response): -- 2.18.1