Skip to content

Commit 1bfd750

Browse files
committed
chore: move to trash error dialogs and status bars
1 parent 6da47a5 commit 1bfd750

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/document/DocumentCommandHandlers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1894,6 +1894,7 @@ define(function (require, exports, module) {
18941894
if (id === Dialogs.DIALOG_BTN_OK) {
18951895
if(Phoenix.isNativeApp && canMoveToTrash) {
18961896
Phoenix.app.moveToTrash(entry.fullPath);
1897+
return;
18971898
}
18981899
ProjectManager.deleteItem(entry);
18991900
}

src/features/NewFileContentManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ define(function (require, exports, module) {
112112
removeContentProvider = _providerRegistrationHandler.removeProvider.bind(_providerRegistrationHandler);
113113

114114
function _getContent(results, providerInfos) {
115-
console.log(results, providerInfos);
115+
console.log("New File content: ", results, "Providers", providerInfos);
116116
for(let i=0; i< results.length; i++){
117117
// providers are already sorted in descending priority order
118118
let result = results[i];

src/phoenix/shell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ Phoenix.app = {
365365
throw new Error("moveToTrash only works with tauri paths, but got: "+ fullVFSPath);
366366
}
367367
const platformPath = Phoenix.fs.getTauriPlatformPath(fullVFSPath);
368-
return window.__TAURI__.invoke('_move_to_trash', { deletePath: platformPath });
368+
return window.__TAURI__.invoke('move_to_trash', { deletePath: platformPath });
369369
},
370370
setWindowTitle: async function (title) {
371371
window.document.title = title;

0 commit comments

Comments
 (0)