warning: this crashes (on linux)
This commit is contained in:
@@ -63,7 +63,9 @@ final class WindowUtils {
|
||||
* @param image The image to set as the icon.
|
||||
**/
|
||||
public static inline function setWindow(?name:String, ?image:String)
|
||||
{ Lib.application.window.setIcon(lime.graphics.Image.fromBytes(Assets.getBytes(image != null ? image : Flags.MOD_ICON)));
|
||||
{
|
||||
if (Flags.MOD_ICON == null && image == null) return;
|
||||
Lib.application.window.setIcon(lime.graphics.Image.fromBytes(Assets.getBytes(Paths.image(image != null ? image : Flags.MOD_ICON))));
|
||||
title = name != null ? name : Flags.MOD_NAME;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user