File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,10 @@ class Flags {
286286 }
287287 }
288288
289- if (! flags .exists (" WINDOW_TITLE_USE_MOD_NAME" )) flags .set (" WINDOW_TITLE_USE_MOD_NAME" , flags .exists (' TITLE' ) ? ' false' : ' true' );
289+ if (! flags .exists (" WINDOW_TITLE_USE_MOD_NAME" )) WINDOW_TITLE_USE_MOD_NAME = ! flags .exists (' TITLE' );
290+ else WINDOW_TITLE_USE_MOD_NAME = parseBool (flags .get (" WINDOW_TITLE_USE_MOD_NAME" ));
291+
292+ flags .remove (" WINDOW_TITLE_USE_MOD_NAME" );
290293 }
291294
292295 public static function loadFromDatas (datas : Array <String >) {
Original file line number Diff line number Diff line change @@ -33,11 +33,9 @@ class FlagMacro {
3333 resetExprs .push (macro $i {" customFlags" } = $v {[]});
3434
3535 for (field in fields ) {
36- var skip = field .meta .hasMeta (" :bypass" );
36+ if ( field .meta .hasMeta (" :bypass" )) continue ;
3737 var hasLazy = field .meta .hasMeta (" :lazy" );
3838
39- if (skip ) continue ;
40-
4139 switch (field .kind ) {
4240 case FVar (type , expr ):
4341 var isNullable = false ;
Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ final class WindowUtils {
2929 public static inline function resetClosing () __triedClosing = false ;
3030
3131 @:dox (hide ) public static inline function init () {
32- resetTitle ();
33- resetClosing ();
34-
3532 Lib .application .window .onClose .add (function () {
3633 if (preventClosing && ! __triedClosing ) {
3734 Lib .application .window .onClose .cancel ();
You can’t perform that action at this time.
0 commit comments