mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-24 10:02:08 -05:00
Fix a rare crash in the gui options screen. (Thanks LarsLHansson)
This commit is contained in:
parent
d4fcdf3199
commit
0f215ef4b4
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue