-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Features: - Infer file path for imported sound files correctly (bridge-core/editor-packages#29) - Ability to refresh folder within the (#659) ## Changes: - Added "1.19.50" format version (ea61a76) - Optimized directory copying (#650) ## Fixes: - Fixed wrong file extension being appended upon exporting project on Android (#655) - Fixed wrong icon color for ImageTab (#657) - Removed rounded window corners on mobile (#652) - Fixed project exports (#661) Co-authored-by: Joelant05 <[email protected]>
- Loading branch information
Showing
14 changed files
with
149 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "bridge", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite", | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Mutex } from './Mutex' | ||
|
||
/** | ||
* A global mutex manages multiple different, keyed mutexes. | ||
*/ | ||
export class GlobalMutex { | ||
protected mutexMap = new Map<string, Mutex>() | ||
|
||
/** | ||
* Lock the mutex with the given key. Creates the mutex if it does not exist. | ||
* | ||
* @param key Mutex to lock | ||
*/ | ||
async lock(key: string) { | ||
let mutex = this.mutexMap.get(key) | ||
if (!mutex) { | ||
mutex = new Mutex() | ||
this.mutexMap.set(key, mutex) | ||
} | ||
|
||
await mutex.lock() | ||
} | ||
|
||
/** | ||
* Unlock the mutex with the given key. | ||
* | ||
* @throws If the mutex does not exist. | ||
* @param key | ||
*/ | ||
unlock(key: string) { | ||
const mutex = this.mutexMap.get(key) | ||
if (!mutex) { | ||
throw new Error('Trying to unlock a mutex that does not exist') | ||
} | ||
|
||
mutex.unlock() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/components/UIElements/DirectoryViewer/ContextMenu/Actions/Refresh.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { DirectoryWrapper } from '/@/components/UIElements/DirectoryViewer/DirectoryView/DirectoryWrapper' | ||
|
||
export const RefreshAction = (directoryWrapper: DirectoryWrapper) => ({ | ||
icon: 'mdi-refresh', | ||
name: 'general.refresh', | ||
|
||
onTrigger: () => { | ||
directoryWrapper.refresh() | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.