mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-24 18:13:15 -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";
|
g.Drawer2D.UseBitmappedChat = v == "no";
|
||||||
Options.Set( OptionsKey.ArialChatFont, v == "yes" );
|
Options.Set( OptionsKey.ArialChatFont, v == "yes" );
|
||||||
game.Events.RaiseChatFontChanged();
|
game.Events.RaiseChatFontChanged();
|
||||||
|
|
||||||
|
if( inputWidget != null ) {
|
||||||
|
inputWidget.Dispose(); inputWidget = null;
|
||||||
|
}
|
||||||
|
if( descWidget != null ) {
|
||||||
|
descWidget.Dispose(); descWidget = null;
|
||||||
|
}
|
||||||
|
|
||||||
g.RefreshHud();
|
g.RefreshHud();
|
||||||
Recreate();
|
Recreate();
|
||||||
} ),
|
} ),
|
||||||
|
|
Loading…
Add table
Reference in a new issue