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 {
286
286
}
287
287
}
288
288
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" );
290
293
}
291
294
292
295
public static function loadFromDatas (datas : Array <String >) {
Original file line number Diff line number Diff line change @@ -33,11 +33,9 @@ class FlagMacro {
33
33
resetExprs .push (macro $i {" customFlags" } = $v {[]});
34
34
35
35
for (field in fields ) {
36
- var skip = field .meta .hasMeta (" :bypass" );
36
+ if ( field .meta .hasMeta (" :bypass" )) continue ;
37
37
var hasLazy = field .meta .hasMeta (" :lazy" );
38
38
39
- if (skip ) continue ;
40
-
41
39
switch (field .kind ) {
42
40
case FVar (type , expr ):
43
41
var isNullable = false ;
Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ final class WindowUtils {
29
29
public static inline function resetClosing () __triedClosing = false ;
30
30
31
31
@:dox (hide ) public static inline function init () {
32
- resetTitle ();
33
- resetClosing ();
34
-
35
32
Lib .application .window .onClose .add (function () {
36
33
if (preventClosing && ! __triedClosing ) {
37
34
Lib .application .window .onClose .cancel ();
You can’t perform that action at this time.
0 commit comments