File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed
profile/georgia-reborn/scripts/Base Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,17 @@ function on_playback_new_track(metadb) {
111
111
}
112
112
113
113
114
+ /**
115
+ * Called when drawing graphics.
116
+ * Draws the main user interface.
117
+ * @global
118
+ * @param {GdiGraphics } gr - The GDI graphics object.
119
+ */
120
+ function on_paint ( gr ) {
121
+ grm . ui . drawMain ( gr ) ;
122
+ }
123
+
124
+
114
125
/**
115
126
* Called when window is being resized.
116
127
*
Original file line number Diff line number Diff line change 6
6
// * Website: https://github.com/TT-ReBORN/Georgia-ReBORN * //
7
7
// * Version: 3.0-RC3 * //
8
8
// * Dev. started: 22-12-2017 * //
9
- // * Last change: 27-10-2024 * //
9
+ // * Last change: 17-01-2025 * //
10
10
/////////////////////////////////////////////////////////////////////////////////
11
11
12
12
@@ -62,13 +62,3 @@ if (grSet.systemFirstLaunch) {
62
62
grm . ui . initFonts ( ) ;
63
63
grm . ui . initMain ( ) ;
64
64
}
65
-
66
- /**
67
- * Called when drawing graphics.
68
- * Draws the main user interface.
69
- * @global
70
- * @param {GdiGraphics } gr - The GDI graphics object.
71
- */
72
- function on_paint ( gr ) {
73
- grm . ui . drawMain ( gr ) ;
74
- }
Original file line number Diff line number Diff line change @@ -1935,6 +1935,8 @@ class MainUI {
1935
1935
this . setMainComponents ( 'all' ) ;
1936
1936
1937
1937
// * Init panels
1938
+ // Wait for on_size to be loaded in gr-callbacks.js after gr-initialize.js
1939
+ await MakeAsync ( ( ) => { } , ( ) => typeof on_size !== 'undefined' ) ;
1938
1940
await MakeAsync ( ( ) => PlaylistRescale ( true ) ) ;
1939
1941
await MakeAsync ( ( ) => this . initPlaylist ( ) ) ;
1940
1942
await MakeAsync ( ( ) => this . initLibraryPanel ( ) ) ;
@@ -1943,8 +1945,6 @@ class MainUI {
1943
1945
1944
1946
// * Init state
1945
1947
if ( fb . IsPlaying && fb . GetNowPlaying ( ) ) {
1946
- // Wait for on_playback_new_track to be loaded in gr-callbacks.js
1947
- await MakeAsync ( ( ) => { } , ( ) => typeof on_playback_new_track !== 'undefined' ) ;
1948
1948
on_playback_new_track ( fb . GetNowPlaying ( ) ) ;
1949
1949
}
1950
1950
plman . SetActivePlaylistContext ( ) ;
You can’t perform that action at this time.
0 commit comments