Skip to content

Commit

Permalink
feat: remove donate dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ogustavo-pereira committed Dec 28, 2022
1 parent 9f03b22 commit 5e55d89
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 62 deletions.
2 changes: 0 additions & 2 deletions app/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const schema = {
cleanOnHide: { type: 'boolean', default: true },
selectOnShow: { type: 'boolean', default: false },
hideOnBlur: { type: 'boolean', default: true },
skipDonateDialog: { type: 'boolean', default: false },
lastShownDonateDialog: { type: 'number', default: 0 },
plugins: { type: 'object', default: {} },
isMigratedPlugins: { type: 'boolean', default: false },
openAtLogin: { type: 'boolean', default: true },
Expand Down
5 changes: 0 additions & 5 deletions app/main/createWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
import buildMenu from './createWindow/buildMenu'
import toggleWindow from './createWindow/toggleWindow'
import handleUrl from './createWindow/handleUrl'
import * as donateDialog from './createWindow/donateDialog'

export default ({ src, isDev }) => {
const [x, y] = config.get('winPosition')
Expand Down Expand Up @@ -169,10 +168,6 @@ export default ({ src, isDev }) => {
})
}

if (donateDialog.shouldShow()) {
setTimeout(donateDialog.show, 1000)
}

// Save in config information, that application has been started
config.set('firstStart', false)

Expand Down
5 changes: 0 additions & 5 deletions app/main/createWindow/AppTray.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Menu, Tray, app } from 'electron'
import showWindowWithTerm from './showWindowWithTerm'
import toggleWindow from './toggleWindow'
import checkForUpdates from './checkForUpdates'
import { donate } from './donateDialog'

/**
* Class that controls state of icon in menu bar
Expand Down Expand Up @@ -61,10 +60,6 @@ export default class AppTray {
click: checkForUpdates,
},
separator,
{
label: 'Donate...',
click: donate
}
]

if (isDev) {
Expand Down
50 changes: 0 additions & 50 deletions app/main/createWindow/donateDialog.js

This file was deleted.

0 comments on commit 5e55d89

Please sign in to comment.