Fix linux build
This commit is contained in:
parent
e3c7bccbe9
commit
b1ff39002b
|
@ -73,10 +73,10 @@ namespace SparkleShare {
|
|||
UnixFileInfo file_info = new UnixFileInfo (desktopfile_path);
|
||||
file_info.Create (FileAccessPermissions.UserReadWriteExecute);
|
||||
|
||||
SparkleHelpers.DebugInfo ("Controller", "Added " + app_path + " to login items");
|
||||
SparkleHelpers.DebugInfo ("Controller", "Added SparkleShare to login items");
|
||||
|
||||
} catch (Exception e) {
|
||||
SparkleHelpers.DebugInfo ("Controller", "Failed adding " + app_path + " to login items: " + e.Message);
|
||||
SparkleHelpers.DebugInfo ("Controller", "Failed adding SparkleShare to login items: " + e.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -620,11 +620,13 @@ namespace SparkleShare {
|
|||
|
||||
Button finish_button = new Button (_("Finish"));
|
||||
finish_button.Clicked += delegate {
|
||||
Controller.FinishPageCompleted ();
|
||||
Controller.TutorialPageCompleted ();
|
||||
};
|
||||
|
||||
|
||||
check_button = new CheckButton ("Add SparkleShare to startup items");
|
||||
CheckButton check_button = new CheckButton ("Add SparkleShare to startup items") {
|
||||
Active = true
|
||||
};
|
||||
|
||||
check_button.Toggled += delegate {
|
||||
Controller.StartupItemChanged (check_button.Active);
|
||||
|
|
|
@ -152,10 +152,8 @@ namespace SparkleShare {
|
|||
}
|
||||
|
||||
if (page_type == PageType.Add) {
|
||||
if (!Program.Controller.FirstRun &&
|
||||
(TutorialPageNumber == 0 ||
|
||||
TutorialPageNumber > 4)) {
|
||||
|
||||
if (!Program.Controller.FirstRun && TutorialPageNumber == 0) {
|
||||
if (ChangePageEvent != null)
|
||||
ChangePageEvent (page_type, null);
|
||||
|
||||
|
@ -163,7 +161,6 @@ namespace SparkleShare {
|
|||
ShowWindowEvent ();
|
||||
|
||||
SelectedPluginChanged (SelectedPluginIndex);
|
||||
|
||||
}
|
||||
|
||||
return;
|
||||
|
@ -235,6 +232,8 @@ namespace SparkleShare {
|
|||
TutorialPageNumber++;
|
||||
|
||||
if (TutorialPageNumber == 5) {
|
||||
TutorialPageNumber = 0;
|
||||
|
||||
if (HideWindowEvent != null)
|
||||
HideWindowEvent ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue