Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/renderer/components/commands-action-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,12 @@ export const GistActionButton = observer(

try {
const description = await this.getFiddleDescriptionFromUser();

if (description) {
if (await this.publishGist(description)) {
await this.props.appState.editorMosaic.markAsSaved();
// Fix for #1821: Only mark as saved if we have a local path
if (appState.localPath) {
await this.props.appState.editorMosaic.markAsSaved();
}
}
}
} finally {
Expand Down Expand Up @@ -214,8 +216,9 @@ export const GistActionButton = observer(
files,
});

await appState.editorMosaic.markAsSaved();
console.log('Updating: Updating done', { gist });
if (appState.localPath) {
await appState.editorMosaic.markAsSaved();
} console.log('Updating: Updating done', { gist });

if (!silent) {
this.renderToast({
Expand Down