Skip to content

Commit

Permalink
one file wasn't formatted with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
szTheory committed Jun 30, 2020
1 parent 5e4ce6e commit 2ebc6d0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ yarn run dev

This app is mostly feature complete. I want to keep it simple and not add a bunch of bloat to it. And I want to avoid release churn. That said, there are a couple small features that might be worth adding. And there are a few minor bugs or points of cleanup that would be worth polishing. If you'd like to help check out the [Issue Tracker](https://github.com/szTheory/exifcleaner/issues) which contains an exhaustive list of known issues. Just pick one and submit a Pull Request or leave a comment and I can provide guidance or help if you need it. Make sure to test the app out to see if it still works though. There isn't much going on this app so it should be easy enough to do. I might add some automated tests later on to help with this. For now it's just been me working on the app so manual testing has worked out fine.

TypeScript code is formatted using Prettier.

### Publishing a new release

This section is really for my own reference when publishing a new release.
Expand Down
26 changes: 13 additions & 13 deletions src/main/init.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import {app, BrowserWindow} from 'electron';
import contextMenu from 'electron-context-menu';
import unhandled from 'electron-unhandled';
import { app, BrowserWindow } from "electron";
import contextMenu from "electron-context-menu";
import unhandled from "electron-unhandled";

import packageJson from '../../package.json';
import packageJson from "../../package.json";

import {setupApp} from './app_setup';
import { setupApp } from "./app_setup";

function setupErrorHandling(): void {
unhandled();
unhandled();
}

// context menu (copy/paste/etc)
function setupContextMenu(): void {
// TODO: manually build this out and remove electron-context-menu
contextMenu();
contextMenu();
}

function setupUserModelId(): void {
app.setAppUserModelId(packageJson.build.appId);
app.setAppUserModelId(packageJson.build.appId);
}

export function init({win}: {win: BrowserWindow|null}): void {
setupErrorHandling();
setupContextMenu();
setupUserModelId();
setupApp({win: win});
export function init({ win }: { win: BrowserWindow | null }): void {
setupErrorHandling();
setupContextMenu();
setupUserModelId();
setupApp({ win: win });
}

0 comments on commit 2ebc6d0

Please sign in to comment.