mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 03:55:19 -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";
|
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…
x
Reference in New Issue
Block a user