-
Notifications
You must be signed in to change notification settings - Fork 16
Add the context menu after the welcome window #179
Add the context menu after the welcome window #179
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove the element from the settings to turn on and off this feature?
app/index.js
Outdated
* This adds the option "Add to IPFS via Orion" to the context menu of the OS, for files | ||
* and directories. Currently only on windows. | ||
*/ | ||
function enableContextMenu () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move this function into app/lib
?
But then there would be absolutely no way to remove it, do we want that? |
We will add a new task to add a way to remove it. I feel we need to make a new section in the Settings :D |
app/index.js
Outdated
@@ -111,6 +113,7 @@ function startWelcome () { | |||
app.mainWindow = welcomeWindow | |||
welcomeWindow.on('closed', () => { | |||
if (Settings.get('welcomeVersion') === 1) { | |||
enableContextMenu() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a small comment here? What is this doing here? :)
@@ -5,7 +5,7 @@ import { trackEvent } from '../../../stats' | |||
|
|||
import { Pane, Button, CheckBox } from 'react-photonkit' | |||
import Input from '../../../components/Input' | |||
import * as WinShell from '../../../util/win-shell' | |||
import * as WinShell from '../../../lib/os-context-menu/win-shell' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3 <3 <3
What changed?
Insert here the changes.