﻿using System;
using System.Windows.Forms;

namespace FreenetTray
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            FNLog.Initialize();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new CommandsMenu());
        }
    }
}

﻿using System;
using System.Windows.Forms;

namespace FreenetTray
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {

            // migrate settings from older config files for previous assembly versions
            FreenetTray.Properties.Settings.Default.Upgrade();

            FNLog.Initialize();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new CommandsMenu());
        }
    }
}

Migrate preferences from older assembly versions at launch
Migrate preferences from older assembly versions at launch

Without this, any preferences set by a user will be reset to the default
values every time the assembly version changes, for example upgrading
the tray app would cause it to forget user preferences
