File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ export const ElectronSettings = observer(
435435 break ;
436436 }
437437
438- if ( this . state . activeVersions . has ( appState . getVersionLockName ( version ) ) ) {
438+ if ( this . state . activeVersions . has ( version ) ) {
439439 return (
440440 < Tooltip
441441 position = "auto"
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ export class AppState {
233233
234234 private static versionLockNamePrefix = 'version:' ;
235235
236- public getVersionLockName ( ver : string ) {
236+ private getVersionLockName ( ver : string ) {
237237 return `${ AppState . versionLockNamePrefix } ${ ver } ` ;
238238 }
239239
@@ -244,7 +244,7 @@ export class AppState {
244244 return ( ( await navigator . locks . query ( ) ) . held || [ ] ) . reduce < Set < string > > (
245245 ( acc , item ) => {
246246 if ( item . name ?. startsWith ( AppState . versionLockNamePrefix ) ) {
247- acc . add ( item . name ) ;
247+ acc . add ( item . name . split ( AppState . versionLockNamePrefix ) [ 1 ] ) ;
248248 }
249249
250250 return acc ;
@@ -825,7 +825,7 @@ export class AppState {
825825
826826 const activeVersions = await this . getActiveVersions ( ) ;
827827
828- if ( activeVersions . has ( this . getVersionLockName ( ver . version ) ) ) {
828+ if ( activeVersions . has ( ver . version ) ) {
829829 console . log ( `State: Not removing active version ${ version } ` ) ;
830830 return ;
831831 }
You can’t perform that action at this time.
0 commit comments