win32_gui: fix inventory window visibility when perm_invent is set in game
authorAlex Kompel <barbos+nethack@gmail.com>
Thu, 14 Jan 2016 16:15:56 +0000 (08:15 -0800)
committerAlex Kompel <barbos+nethack@gmail.com>
Thu, 14 Jan 2016 16:15:56 +0000 (08:15 -0800)
win/win32/mswproc.c

index e386ee50ee5c16c3a893d7e1b3e36c1f4e7f7b00..7f2ac577e9ef334e6e5161269c839688eac41438 100644 (file)
@@ -1980,6 +1980,11 @@ mswin_preference_update(const char *pref)
         mswin_layout_main_window(NULL);
         return;
     }
+
+    if (stricmp(pref, "perm_invent") == 0) {
+        mswin_update_inventory();
+        return;
+    }
 }
 
 #define TEXT_BUFFER_SIZE 4096