Update WindowUtils.hx
This commit is contained in:
@@ -64,7 +64,7 @@ final class WindowUtils {
|
||||
**/
|
||||
public static inline function setWindow(?name:String, ?image:String)
|
||||
{
|
||||
Lib.application.window.setIcon(lime.graphics.Image.fromBytes(Assets.getBytes(Flags.MOD_ICON != null ? Flags.MOD_ICON : image)));
|
||||
Lib.application.window.setIcon(lime.graphics.Image.fromBytes(Assets.getBytes(image != null ? image : Flags.MOD_ICON)));
|
||||
title = Flags.MOD_NAME != null ? Flags.MOD_NAME : title;
|
||||
}
|
||||
|
||||
@@ -90,4 +90,4 @@ final class WindowUtils {
|
||||
@:noCompletion private inline static function set_winTitle(value:String):String {
|
||||
return title = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user