fix: should not show open folder if it is not moved (#2299)
This commit is contained in:
1 parent
73dbb39009
commit
06fa0cdb60
12 files changed
+170
-51
No files matched your search
@@ -36,7 +36,7 @@ vi.stubGlobal('window', {
|
||||
},
|
||||
events: {
|
||||
db: {
|
||||
onDbFileUpdate: (fn: (id: string) => void) => {
|
||||
onDBFileUpdate: (fn: (id: string) => void) => {
|
||||
triggerDBUpdate = fn;
|
||||
return () => {
|
||||
triggerDBUpdate = null;
|
||||
@@ -44,7 +44,10 @@ vi.stubGlobal('window', {
|
||||
},
|
||||
|
||||
// not used in this test
|
||||
onDbFileMissing: () => {
|
||||
onDBFileMissing: () => {
|
||||
return () => {};
|
||||
},
|
||||
onDBFilePathChange: () => {
|
||||
return () => {};
|
||||
},
|
||||
},
|
||||
|
||||
@@ -243,7 +243,7 @@ const createSQLiteProvider = (
|
||||
blockSuiteWorkspace.doc.on('update', handleUpdate);
|
||||
|
||||
let timer = 0;
|
||||
unsubscribe = events.db.onDbFileUpdate(workspaceId => {
|
||||
unsubscribe = events.db.onDBFileUpdate(workspaceId => {
|
||||
if (workspaceId === blockSuiteWorkspace.id) {
|
||||
// throttle
|
||||
logger.debug('on db update', workspaceId);
|
||||
|
||||
Reference in new issue
Block a user