setup: Open Folder -> Show Files
This commit is contained in:
parent
9571043aba
commit
0572f013b5
|
@ -691,10 +691,10 @@ namespace SparkleShare {
|
||||||
Description = "You can find it in your SparkleShare folder";
|
Description = "You can find it in your SparkleShare folder";
|
||||||
|
|
||||||
// A button that opens the synced folder
|
// A button that opens the synced folder
|
||||||
Button open_folder_button = new Button ("Show Folder");
|
Button show_files_button = new Button ("Show Files");
|
||||||
|
|
||||||
open_folder_button.Clicked += delegate {
|
show_files_button.Clicked += delegate {
|
||||||
Controller.OpenFolderClicked ();
|
Controller.ShowFilesClicked ();
|
||||||
};
|
};
|
||||||
|
|
||||||
Button finish_button = new Button ("Finish");
|
Button finish_button = new Button ("Finish");
|
||||||
|
@ -706,8 +706,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
if (warnings.Length > 0) {
|
if (warnings.Length > 0) {
|
||||||
Image warning_image = new Image (
|
Image warning_image = new Image (
|
||||||
SparkleUIHelpers.GetIcon ("dialog-information", 24)
|
SparkleUIHelpers.GetIcon ("dialog-information", 24));
|
||||||
);
|
|
||||||
|
|
||||||
Label warning_label = new Label (warnings [0]) {
|
Label warning_label = new Label (warnings [0]) {
|
||||||
Xalign = 0,
|
Xalign = 0,
|
||||||
|
@ -728,7 +727,7 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
AddButton (open_folder_button);
|
AddButton (show_files_button);
|
||||||
AddButton (finish_button);
|
AddButton (finish_button);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -41,7 +41,7 @@ namespace SparkleShare {
|
||||||
private NSButton StartupCheckButton;
|
private NSButton StartupCheckButton;
|
||||||
private NSButton HistoryCheckButton;
|
private NSButton HistoryCheckButton;
|
||||||
private NSButton ShowPasswordCheckButton;
|
private NSButton ShowPasswordCheckButton;
|
||||||
private NSButton OpenFolderButton;
|
private NSButton ShowFilesButton;
|
||||||
private NSButton FinishButton;
|
private NSButton FinishButton;
|
||||||
private NSImage SlideImage;
|
private NSImage SlideImage;
|
||||||
private NSImageView SlideImageView;
|
private NSImageView SlideImageView;
|
||||||
|
@ -804,8 +804,8 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
OpenFolderButton = new NSButton () {
|
ShowFilesButton = new NSButton () {
|
||||||
Title = "Show folder"
|
Title = "Show files"
|
||||||
};
|
};
|
||||||
|
|
||||||
FinishButton = new NSButton () {
|
FinishButton = new NSButton () {
|
||||||
|
@ -813,8 +813,8 @@ namespace SparkleShare {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
OpenFolderButton.Activated += delegate {
|
ShowFilesButton.Activated += delegate {
|
||||||
Controller.OpenFolderClicked ();
|
Controller.ShowFilesClicked ();
|
||||||
};
|
};
|
||||||
|
|
||||||
FinishButton.Activated += delegate {
|
FinishButton.Activated += delegate {
|
||||||
|
@ -823,7 +823,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
|
|
||||||
Buttons.Add (FinishButton);
|
Buttons.Add (FinishButton);
|
||||||
Buttons.Add (OpenFolderButton);
|
Buttons.Add (ShowFilesButton);
|
||||||
|
|
||||||
NSApplication.SharedApplication.RequestUserAttention (NSRequestUserAttentionType.CriticalRequest);
|
NSApplication.SharedApplication.RequestUserAttention (NSRequestUserAttentionType.CriticalRequest);
|
||||||
}
|
}
|
||||||
|
|
|
@ -536,7 +536,7 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void OpenFolderClicked ()
|
public void ShowFilesClicked ()
|
||||||
{
|
{
|
||||||
string folder_name = Path.GetFileName (PreviousPath);
|
string folder_name = Path.GetFileName (PreviousPath);
|
||||||
|
|
||||||
|
|
|
@ -754,8 +754,8 @@ namespace SparkleShare {
|
||||||
Content = "Finish"
|
Content = "Finish"
|
||||||
};
|
};
|
||||||
|
|
||||||
Button open_folder_button = new Button () {
|
Button show_files_button = new Button () {
|
||||||
Content = "Show folder"
|
Content = "Show files"
|
||||||
};
|
};
|
||||||
|
|
||||||
if (warnings.Length > 0) {
|
if (warnings.Length > 0) {
|
||||||
|
@ -782,7 +782,7 @@ namespace SparkleShare {
|
||||||
TaskbarItemInfo.ProgressValue = 0.0;
|
TaskbarItemInfo.ProgressValue = 0.0;
|
||||||
TaskbarItemInfo.ProgressState = TaskbarItemProgressState.None;
|
TaskbarItemInfo.ProgressState = TaskbarItemProgressState.None;
|
||||||
|
|
||||||
Buttons.Add (open_folder_button);
|
Buttons.Add (show_files_button);
|
||||||
Buttons.Add (finish_button);
|
Buttons.Add (finish_button);
|
||||||
|
|
||||||
|
|
||||||
|
@ -790,8 +790,8 @@ namespace SparkleShare {
|
||||||
Controller.FinishPageCompleted ();
|
Controller.FinishPageCompleted ();
|
||||||
};
|
};
|
||||||
|
|
||||||
open_folder_button.Click += delegate {
|
show_files_button.Click += delegate {
|
||||||
Controller.OpenFolderClicked ();
|
Controller.ShowFilesClicked ();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue