# HG changeset patch # User ib # Date 1395755152 0 # Node ID 79fe279d3bac0547093e3ac2fb43f47cbc941a92 # Parent a56291ee9bf9a220492c9cec3388098256556d17 Set state for buttons volume and balance on skin change. diff -r a56291ee9bf9 -r 79fe279d3bac gui/ui/actions.c --- a/gui/ui/actions.c Tue Mar 25 13:07:24 2014 +0000 +++ b/gui/ui/actions.c Tue Mar 25 13:45:52 2014 +0000 @@ -658,6 +658,11 @@ /* */ + if (guiInfo.AudioPassthrough) + btnSet(evSetVolume, btnDisabled); + if (guiInfo.AudioChannels < 2 || guiInfo.AudioPassthrough) + btnSet(evSetBalance, btnDisabled); + btnSet(evFullScreen, (guiApp.videoWindow.isFullScreen ? btnPressed : btnReleased)); wsWindowLayer(wsDisplay, guiApp.mainWindow.WindowID, guiApp.videoWindow.isFullScreen);