@@ -41,7 +41,7 @@ function createWindow() {
41
41
playerpath : '' ,
42
42
hide_zeroreplay_fans : false ,
43
43
hide_zeroreplay_followings : true ,
44
- enableHomeScan : true
44
+ enableHomeScan : false
45
45
} )
46
46
appSettings . set ( 'position' , {
47
47
mainWindow : [ - 1 , - 1 ] ,
@@ -107,51 +107,6 @@ function createWindow() {
107
107
}
108
108
} )
109
109
110
- if ( isFreshInstall ) {
111
- wizardWindow = new BrowserWindow ( {
112
- icon : path . join ( __dirname , 'appicon.png' ) ,
113
- width : 520 ,
114
- height : 300 ,
115
- darkTheme : true ,
116
- autoHideMenuBar : false ,
117
- disableAutoHideCursor : true ,
118
- titleBarStyle : 'default' ,
119
- resizable : false ,
120
- fullscreen : false ,
121
- maximizable : false ,
122
- show : false ,
123
- frame : false ,
124
- backgroundColor : 'transparent' ,
125
- webPreferences : {
126
- webSecurity : false ,
127
- textAreasAreResizable : false ,
128
- plugins : true
129
- }
130
- } )
131
-
132
- wizardWindow . on ( 'close' , ( ) => {
133
- // Don't allow wizard to run next time
134
- appSettings . set ( 'general.fresh_install' , false )
135
- DataManager . enableWrites ( )
136
-
137
- wizardWindow . webContents . session . clearCache ( ( ) => {
138
- // Purge the cache to help avoid eating up space on the drive
139
- } )
140
-
141
- if ( mainWindow != null ) {
142
- setTimeout ( ( ) => {
143
- let pos = appSettings . get ( 'position.mainWindow' )
144
- mainWindow . setPosition ( pos [ 0 ] , pos [ 1 ] , false )
145
- mainWindow . show ( )
146
- } , 250 )
147
-
148
- }
149
-
150
- wizardWindow = null
151
-
152
- } )
153
- }
154
-
155
110
/**
156
111
* Configure our window contents and callbacks
157
112
*/
@@ -184,7 +139,7 @@ function createWindow() {
184
139
app . quit ( )
185
140
} , 500 )
186
141
} )
187
-
142
+
188
143
/**
189
144
* Build our application menus using the templates provided
190
145
* further down.
@@ -196,28 +151,22 @@ function createWindow() {
196
151
global . LiveMe = LiveMe
197
152
global . DataManager = DataManager
198
153
199
-
200
154
DataManager . loadFromDisk ( )
201
155
202
156
setTimeout ( ( ) => {
203
157
const dt = new Date ( )
204
158
let ma = appSettings . get ( 'history.viewed_maxage' )
205
159
let od = Math . floor ( ( dt . getTime ( ) - ( ma * 86400000 ) ) / 1000 )
206
160
DataManager . unviewProfiles ( od , false )
207
- } , 250 )
208
161
209
- if ( isFreshInstall ) {
210
- DataManager . disableWrites ( )
211
- wizardWindow . loadURL ( `file://${ __dirname } /app/wizard.html` )
212
- wizardWindow . show ( )
213
- } else {
214
- mainWindow . show ( )
162
+ } , 250 )
215
163
216
- let pos = appSettings . get ( 'position.mainWindow' ) . length > 1 ? appSettings . get ( 'position.mainWindow' ) : [ null , null ]
217
- if ( pos [ 0 ] != null ) {
218
- mainWindow . setPosition ( pos [ 0 ] , pos [ 1 ] , false )
219
- }
164
+ let pos = appSettings . get ( 'position.mainWindow' ) . length > 1 ? appSettings . get ( 'position.mainWindow' ) : [ null , null ]
165
+ if ( pos [ 0 ] != null ) {
166
+ mainWindow . setPosition ( pos [ 0 ] , pos [ 1 ] , false )
220
167
}
168
+ mainWindow . show ( )
169
+
221
170
}
222
171
223
172
app . on ( 'ready' , ( ) => {
0 commit comments