Browse Source

Save last level pack id properly.

Stephen Damm 5 years ago
parent
commit
dd2375f210

+ 1 - 1
SongBrowserPlugin/Logging/Logger.cs

@@ -14,7 +14,7 @@ namespace SongBrowser.Logging
     public class Logger
     {
         private static readonly string LoggerName = "SongBrowser";
-        private static readonly LogLevel LogLevel = LogLevel.Info;
+        private static readonly LogLevel LogLevel = LogLevel.Debug;
         private static readonly ConsoleColor DefaultFgColor = ConsoleColor.Gray;
 
         private static void ResetForegroundColor()

+ 1 - 1
SongBrowserPlugin/Plugin.cs

@@ -12,7 +12,7 @@ namespace SongBrowser
 {
     public class Plugin : IPlugin
     {
-        public const string VERSION_NUMBER = "5.0.0";
+        public const string VERSION_NUMBER = "5.0.0-Beta-4";
         public static Plugin Instance;
 
         public string Name

+ 5 - 3
SongBrowserPlugin/UI/Browser/SongBrowserUI.cs

@@ -629,7 +629,6 @@ namespace SongBrowser.UI
 
             try
             {
-                //RefreshSongList();
                 RefreshSortButtonUI();
                 RefreshQuickScrollButtons();
             }
@@ -655,8 +654,11 @@ namespace SongBrowser.UI
                 if (this._model.Settings.currentLevelPackId != arg2.packID)
                 {
                     this._model.Settings.filterMode = SongFilterMode.None;
-                    this._model.Settings.Save();
-                }                
+                }
+
+                // save level pack
+                this._model.Settings.currentLevelPackId = arg2.packID;
+                this._model.Settings.Save();
 
                 this._model.ProcessSongList(arg2);
                 RefreshSongUI();