Always show Flipper version

Summary:
This moves the version display from the updater component
to the titlebar itself, so it'll be shown even in dev mode.

This is already useful when using it on platforms like Linux
where the updater isn't supported, but will also help when
moving to the launcher model.

Reviewed By: jknoxville

Differential Revision: D13819139

fbshipit-source-id: cbc127b8ccdf932f823bc1f40319f296516dfc31
This commit is contained in:
Pascal Hartig
2019-01-28 04:48:36 -08:00
committed by Facebook Github Bot
parent 1b9c32b103
commit 2a0f0b3dde
6 changed files with 39 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ import BugReporterDialog from './chrome/BugReporterDialog.js';
import ErrorBar from './chrome/ErrorBar.js';
import PluginContainer from './PluginContainer.js';
import Sheet from './chrome/Sheet.js';
import {ipcRenderer} from 'electron';
import {ipcRenderer, remote} from 'electron';
import PluginDebugger from './chrome/PluginDebugger.js';
import {
ACTIVE_SHEET_BUG_REPORTER,
@@ -27,6 +27,8 @@ import type BugReporter from './fb-stubs/BugReporter.js';
import type BaseDevice from './devices/BaseDevice.js';
import type {ActiveSheet} from './reducers/application.js';
const version = remote.app.getVersion();
type Props = {
logger: Logger,
bugReporter: BugReporter,
@@ -71,7 +73,7 @@ export class App extends React.Component<Props> {
render() {
return (
<FlexColumn grow={true}>
<TitleBar />
<TitleBar version={version} />
<Sheet>{this.getSheet}</Sheet>
<FlexRow grow={true}>
{this.props.leftSidebarVisible && <MainSidebar />}