windows setup: add slide and fix startup item checkbox
This commit is contained in:
parent
ce4065bb15
commit
f0c753d4f0
|
@ -244,7 +244,7 @@ namespace SparkleShare {
|
|||
|
||||
public void UIHasLoaded ()
|
||||
{
|
||||
if (FirstRun)
|
||||
//if (FirstRun)
|
||||
ShowSetupWindow (PageType.Setup);
|
||||
}
|
||||
|
||||
|
|
|
@ -430,6 +430,18 @@ namespace SparkleShare {
|
|||
"that will keep track of your projects.";
|
||||
|
||||
|
||||
WPF.Image slide_image = new WPF.Image () {
|
||||
Width = 350,
|
||||
Height = 200
|
||||
};
|
||||
|
||||
slide_image.Source = SparkleUIHelpers.GetBitmap ("tutorial-slide-1-windows");
|
||||
|
||||
|
||||
ContentCanvas.Children.Add (slide_image);
|
||||
Canvas.SetLeft (slide_image, 215);
|
||||
Canvas.SetTop (slide_image, 130);
|
||||
|
||||
Button skip_tutorial_button = new Button () {
|
||||
Content = "Skip tutorial"
|
||||
};
|
||||
|
@ -529,6 +541,10 @@ namespace SparkleShare {
|
|||
|
||||
Buttons.Add (finish_button);
|
||||
|
||||
|
||||
check_box.Click += delegate {
|
||||
Controller.StartupItemChanged (check_box.IsChecked.Value);
|
||||
};
|
||||
|
||||
finish_button.Click += delegate {
|
||||
Controller.TutorialPageCompleted ();
|
||||
|
|
|
@ -223,6 +223,9 @@
|
|||
<Link>plugins\bitbucket.png</Link>
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="..\..\data\icons\process-syncing-sparkleshare-mac-i.png">
|
||||
<Link>Pixmaps\process-syncing-sparkleshare-mac-i.png</Link>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons.tt">
|
||||
|
|
|
@ -78,7 +78,6 @@ namespace SparkleShare {
|
|||
});
|
||||
};
|
||||
|
||||
|
||||
Program.Controller.FolderListChanged += delegate {
|
||||
Dispatcher.Invoke ((Action) delegate {
|
||||
SetNormalState ();
|
||||
|
@ -177,7 +176,6 @@ namespace SparkleShare {
|
|||
MenuItem folder_item = new MenuItem () {
|
||||
Header = " SparkleShare"//,
|
||||
,Icon = i
|
||||
|
||||
};
|
||||
|
||||
folder_item.Click += delegate {
|
||||
|
|
Loading…
Reference in a new issue