mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
Fix a rare crash in the gui options screen. (Thanks LarsLHansson)
This commit is contained in:
parent
d4fcdf3199
commit
0f215ef4b4
@ -63,6 +63,14 @@ namespace ClassicalSharp {
|
||||
g.Drawer2D.UseBitmappedChat = v == "no";
|
||||
Options.Set( OptionsKey.ArialChatFont, v == "yes" );
|
||||
game.Events.RaiseChatFontChanged();
|
||||
|
||||
if( inputWidget != null ) {
|
||||
inputWidget.Dispose(); inputWidget = null;
|
||||
}
|
||||
if( descWidget != null ) {
|
||||
descWidget.Dispose(); descWidget = null;
|
||||
}
|
||||
|
||||
g.RefreshHud();
|
||||
Recreate();
|
||||
} ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user