Skip to content

Commit

Permalink
remove server panel
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget committed Jun 22, 2020
1 parent 8cf2f14 commit 9371b72
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
12 changes: 6 additions & 6 deletions support/hololens/ServoApp/BrowserPage.cpp
Expand Up @@ -325,14 +325,14 @@ void BrowserPage::OnDevtoolsButtonClicked(IInspectable const &,
mDevtoolsClient->Run();
std::wstring message =
resourceLoader.GetString(L"devtoolsStatus/Running").c_str();
std::wstring formatted = format(message, port.c_str());
DevtoolsStatusMessage().Text(formatted);
hstring formatted{format(message, port.c_str())};
OnDevtoolsMessage(servo::DevtoolsMessageLevel::None, L"", formatted);
} else if (mDevtoolsStatus == DevtoolsStatus::Failed) {
DevtoolsStatusMessage().Text(
resourceLoader.GetString(L"devtoolsStatus/Failed"));
auto body = resourceLoader.GetString(L"devtoolsStatus/Failed");
OnDevtoolsMessage(servo::DevtoolsMessageLevel::Error, L"", body);
} else if (mDevtoolsStatus == DevtoolsStatus::Stopped) {
DevtoolsStatusMessage().Text(
resourceLoader.GetString(L"devtoolsStatus/Stopped"));
auto body = resourceLoader.GetString(L"devtoolsStatus/Stopped");
OnDevtoolsMessage(servo::DevtoolsMessageLevel::None, L"", body);
}
}

Expand Down
3 changes: 0 additions & 3 deletions support/hololens/ServoApp/BrowserPage.xaml
Expand Up @@ -186,9 +186,6 @@
<TextBox MinHeight="12" FontFamily="Consolas" FontSize="12" Grid.Row="1" IsTabStop="true" x:Name="JSInput" VerticalAlignment="Center" KeyUp="OnJSInputEdited" IsSpellCheckEnabled="False"/>
</Grid>
</muxc:TabViewItem>
<muxc:TabViewItem x:Uid="devtoolsTabServer" IsClosable="False">
<TextBlock x:Name="DevtoolsStatusMessage" Margin="10"></TextBlock>
</muxc:TabViewItem>
<muxc:TabViewItem x:Uid="devtoolsTabPrefs" IsClosable="False">
<Grid VerticalAlignment="Stretch">
<Grid.RowDefinitions>
Expand Down
3 changes: 0 additions & 3 deletions support/hololens/ServoApp/Strings/en-US/Resources.resw
Expand Up @@ -108,9 +108,6 @@
<data name="urlTextbox.PlaceholderText" xml:space="preserve">
<value>Type a URL</value>
</data>
<data name="devtoolsTabServer.[using:Microsoft.UI.Xaml.Controls]TabViewItem.Header" xml:space="preserve">
<value>Devtools Server</value>
</data>
<data name="devtoolsTabConsole.[using:Microsoft.UI.Xaml.Controls]TabViewItem.Header" xml:space="preserve">
<value>Console</value>
</data>
Expand Down
3 changes: 0 additions & 3 deletions support/hololens/ServoApp/Strings/fr-FR/Resources.resw
Expand Up @@ -104,9 +104,6 @@
<data name="urlTextbox.PlaceholderText" xml:space="preserve">
<value>Saisir une adresse</value>
</data>
<data name="devtoolsTabServer.[using:Microsoft.UI.Xaml.Controls]TabViewItem.Header" xml:space="preserve">
<value>Serveur DevTools</value>
</data>
<data name="devtoolsTabPrefs.[using:Microsoft.UI.Xaml.Controls]TabViewItem.Header" xml:space="preserve">
<value>Préférences</value>
</data>
Expand Down

0 comments on commit 9371b72

Please sign in to comment.