Skip to content

Commit

Permalink
update dblclick to open new file window
Browse files Browse the repository at this point in the history
  • Loading branch information
solvedDev committed Jan 22, 2020
1 parent e117fe3 commit 7e59169
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/renderer/components/editor_shell/WelcomeScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
</template>

<script>
import TabSystem from '../../scripts/TabSystem';
import path from "path";
import { CURRENT } from '../../scripts/constants';
import CreateFileWindow from '../../windows/CreateFile';
export default {
name: "welcome-screen",
Expand All @@ -48,15 +46,7 @@
},
methods: {
createFile(event) {
TabSystem.add({
file_version: 0,
content: "",
raw_content: new Buffer(""),
file_path: path.join(CURRENT.PROJECT_PATH, "untitled.txt"),
is_compiled: false,
category: CURRENT.PROJECT,
file_name: "untitled.txt"
});
new CreateFileWindow(undefined, false);
}
}
}
Expand Down

0 comments on commit 7e59169

Please sign in to comment.