From 5ce61bc8e669d81f056b5937bd9119146c532ad5 Mon Sep 17 00:00:00 2001 From: RKrom Date: Wed, 18 Aug 2010 05:39:36 +0000 Subject: [PATCH] Some small changes for a dirty flag in the configuration git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@812 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Forms/MainForm.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Greenshot/Forms/MainForm.cs b/Greenshot/Forms/MainForm.cs index 20b84403f..5495c8d1b 100644 --- a/Greenshot/Forms/MainForm.cs +++ b/Greenshot/Forms/MainForm.cs @@ -39,7 +39,6 @@ using Greenshot.Forms; using Greenshot.Helpers; using Greenshot.Plugin; using Greenshot.UnmanagedHelpers; -using GreenshotCore.Configuration; namespace Greenshot { /// @@ -84,12 +83,14 @@ namespace Greenshot { // Read configuration coreConfiguration = IniConfig.GetInstance().GetSection(); - IniConfig.GetInstance().Save(); + if (coreConfiguration.IsDirty) { + IniConfig.GetInstance().Save(); + } LOG.Info("Firstlaunch: " + coreConfiguration.IsFirstLaunch); LOG.Info("Destinations:"); if (coreConfiguration.OutputDestinations != null) { foreach(Destinations destination in coreConfiguration.OutputDestinations) { - LOG.Info(destination); + LOG.Info("\t" + destination); } }