Add settings UI
Summary: Adds a simple UI for editing settings, a reducer and persistance config for the data. These values aren't yet used for anything. Reviewed By: passy Differential Revision: D17684490 fbshipit-source-id: e76ac43ffa17d3606e59f4a1ccb940e8d9fbd9e8
This commit is contained in:
committed by
Facebook Github Bot
parent
8c15547597
commit
eb64ff0832
@@ -11,6 +11,7 @@ import {
|
||||
setSelectPluginsToExportActiveSheet,
|
||||
setActiveSheet,
|
||||
ACTIVE_SHEET_PLUGINS,
|
||||
ACTIVE_SHEET_SETTINGS,
|
||||
} from './reducers/application';
|
||||
import {Store} from './reducers/';
|
||||
import electron, {MenuItemConstructorOptions} from 'electron';
|
||||
@@ -214,6 +215,11 @@ function getTemplate(
|
||||
{
|
||||
label: 'File',
|
||||
submenu: [
|
||||
{
|
||||
label: 'Preferences',
|
||||
accelerator: 'Cmd+,',
|
||||
click: () => store.dispatch(setActiveSheet(ACTIVE_SHEET_SETTINGS)),
|
||||
},
|
||||
{
|
||||
label: 'Import Flipper File...',
|
||||
accelerator: 'CommandOrControl+O',
|
||||
|
||||
Reference in New Issue
Block a user