Enable status items manually in build. Fixes #346
This commit is contained in:
parent
9855c1b154
commit
5ab8da0794
4
SparkleShare/Mac/SparkleShare.csproj
Normal file → Executable file
4
SparkleShare/Mac/SparkleShare.csproj
Normal file → Executable file
|
@ -6,7 +6,7 @@
|
|||
<ProductVersion>10.0.0</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{CF5BC8DB-A633-4FCC-8A3E-E3AC9B59FABC}</ProjectGuid>
|
||||
<ProjectTypeGuids>{948B3504-5B70-4649-8FE4-BDE1FB46EC69};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<ProjectTypeGuids>{1C533B1C-72DD-4CB1-9F6B-BF11D93BCFBE};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>SparkleShare</RootNamespace>
|
||||
<AssemblyName>SparkleShare</AssemblyName>
|
||||
|
@ -114,7 +114,7 @@
|
|||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<InterfaceDefinition Include="MainMenu.xib" xmlns="" />
|
||||
<Page Include="MainMenu.xib" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Info.plist" />
|
||||
|
|
|
@ -147,9 +147,11 @@ namespace SparkleShare {
|
|||
StatusItem.AlternateImage.Size = new SizeF (16, 16);
|
||||
|
||||
Menu = new NSMenu ();
|
||||
Menu.AutoEnablesItems = false;
|
||||
|
||||
StateMenuItem = new NSMenuItem () {
|
||||
Title = StateText
|
||||
Title = StateText,
|
||||
Enabled = false
|
||||
};
|
||||
|
||||
Menu.AddItem (StateMenuItem);
|
||||
|
@ -165,6 +167,7 @@ namespace SparkleShare {
|
|||
|
||||
FolderMenuItem.Image = SparkleShareImage;
|
||||
FolderMenuItem.Image.Size = new SizeF (16, 16);
|
||||
FolderMenuItem.Enabled = true;
|
||||
|
||||
Menu.AddItem (FolderMenuItem);
|
||||
|
||||
|
@ -189,7 +192,8 @@ namespace SparkleShare {
|
|||
|
||||
FolderMenuItems [i] = item;
|
||||
FolderMenuItems [i].Activated += Tasks [i];
|
||||
|
||||
FolderMenuItem.Enabled = true;
|
||||
|
||||
i++;
|
||||
};
|
||||
|
||||
|
@ -207,7 +211,8 @@ namespace SparkleShare {
|
|||
Menu.AddItem (NSMenuItem.SeparatorItem);
|
||||
|
||||
SyncMenuItem = new NSMenuItem () {
|
||||
Title = "Add Hosted Project…"
|
||||
Title = "Add Hosted Project…",
|
||||
Enabled = true
|
||||
};
|
||||
|
||||
if (!Program.Controller.FirstRun) {
|
||||
|
@ -233,7 +238,8 @@ namespace SparkleShare {
|
|||
Menu.AddItem (NSMenuItem.SeparatorItem);
|
||||
|
||||
RecentEventsMenuItem = new NSMenuItem () {
|
||||
Title = "Open Recent Events"
|
||||
Title = "Open Recent Events",
|
||||
Enabled = true
|
||||
};
|
||||
|
||||
if (Controller.Folders.Length > 0) {
|
||||
|
@ -252,7 +258,9 @@ namespace SparkleShare {
|
|||
|
||||
Menu.AddItem (RecentEventsMenuItem);
|
||||
|
||||
NotificationsMenuItem = new NSMenuItem ();
|
||||
NotificationsMenuItem = new NSMenuItem () {
|
||||
Enabled = true
|
||||
};
|
||||
|
||||
if (Program.Controller.NotificationsEnabled)
|
||||
NotificationsMenuItem.Title = "Turn Notifications Off";
|
||||
|
@ -274,7 +282,8 @@ namespace SparkleShare {
|
|||
Menu.AddItem (NSMenuItem.SeparatorItem);
|
||||
|
||||
AboutMenuItem = new NSMenuItem () {
|
||||
Title = "About SparkleShare"
|
||||
Title = "About SparkleShare",
|
||||
Enabled = true
|
||||
};
|
||||
|
||||
AboutMenuItem.Activated += delegate {
|
||||
|
|
Loading…
Reference in a new issue