Fixed some issues with mac export.

This commit is contained in:
Joey Payne 2014-09-29 09:06:53 +13:00
commit 9d49f8069b

View file

@ -88,7 +88,7 @@ class Setting(object):
if location:
self.save_path = location
else:
self.save_path = DEFAULT_DOWNLOAD_PATH
self.save_path = self.save_path or DEFAULT_DOWNLOAD_PATH
self.get_file_information_from_url()
if self.full_file_path:
@ -165,11 +165,11 @@ class MainWindow(QtGui.QWidget):
}
win_32_dir_prefix = 'node-webkit-v{}-win-ia32'
mac_32_dir_prefix = 'node-webkit-v{}-mac-ia32'
mac_32_dir_prefix = 'node-webkit-v{}-osx-ia32'
linux_32_dir_prefix = 'node-webkit-v{}-linux-ia32'
win_64_dir_prefix = 'node-webkit-v{}-win-x64'
mac_64_dir_prefix = 'node-webkit-v{}-mac-x64'
mac_64_dir_prefix = 'node-webkit-v{}-osx-x64'
linux_64_dir_prefix = 'node-webkit-v{}-linux-x64'
@ -1048,6 +1048,9 @@ class MainWindow(QtGui.QWidget):
log( 'Warning: Json file invalid.')
self.ex_button.setEnabled(self.requiredSettingsFilled())
def load_from_json(self, json_str):
dic = json.loads(json_str)
self.original_packagejson = dic