Isolate default URL in its own file, for convenience

This commit is contained in:
Paul Rouget 2019-09-20 08:03:53 +02:00
parent 748fa72320
commit 4490b2de9a
4 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,3 @@
#pragma once
#define DEFAULT_URL L"about:blank";

View file

@ -128,6 +128,7 @@
<ClInclude Include="ServoControl\OpenGLES.h" />
<ClInclude Include="ServoControl\Servo.h" />
<ClInclude Include="ServoControl\ServoControl.h" />
<ClInclude Include="DefaultUrl.h" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">

View file

@ -37,6 +37,7 @@
<ClInclude Include="ServoControl\ServoControl.h">
<Filter>ServoControl</Filter>
</ClInclude>
<ClInclude Include="DefaultUrl.h" />
</ItemGroup>
<ItemGroup>
<Image Include="Assets\Wide310x150Logo.scale-200.png">

View file

@ -2,6 +2,7 @@
#include "ServoControl.g.h"
#include "OpenGLES.h"
#include "Servo.h"
#include "DefaultUrl.h"
namespace winrt::ServoApp::implementation {
struct ServoControl : ServoControlT<ServoControl>, public servo::ServoDelegate {
@ -95,7 +96,7 @@ private:
winrt::event<EventDelegate> mOnCaptureGesturesEndedEvent;
float mDPI = 1;
hstring mInitialURL = L"about:blank";
hstring mInitialURL = DEFAULT_URL;
bool mTransient = false;
Windows::UI::Xaml::Controls::SwapChainPanel ServoControl::Panel();