From 9c1631e37a11f0e0f0a19722cebc95f6bb5b6f90 Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Tue, 5 Apr 2016 20:43:22 +0100 Subject: [PATCH] Save the document on any install/update action - fixes #276 --- app/CocoaPods/CPPodfileViewController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/CocoaPods/CPPodfileViewController.swift b/app/CocoaPods/CPPodfileViewController.swift index 27fc4cd9..bf0053f5 100644 --- a/app/CocoaPods/CPPodfileViewController.swift +++ b/app/CocoaPods/CPPodfileViewController.swift @@ -64,21 +64,25 @@ class CPPodfileViewController: NSViewController, NSTabViewDelegate { } @IBAction func install(obj: AnyObject) { + userProject.saveDocument(self) installAction.performAction(.Install(verbose: false)) showConsoleTab(self) } @IBAction func installVerbose(obj: AnyObject) { + userProject.saveDocument(self) installAction.performAction(.Install(verbose: true)) showConsoleTab(self) } @IBAction func installUpdate(obj: AnyObject) { + userProject.saveDocument(self) installAction.performAction(.Update(verbose: false)) showConsoleTab(self) } @IBAction func installUpdateVerbose(obj: AnyObject) { + userProject.saveDocument(self) installAction.performAction(.Update(verbose: true)) showConsoleTab(self) }