mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
enable restore from disk menu using question mark if no exact db key match is found
This commit is contained in:
parent
a70664508d
commit
b6a38de961
6 changed files with 22 additions and 16 deletions
|
@ -507,7 +507,6 @@ namespace PersistentWindows.SystrayShell
|
|||
|
||||
static public void RestoreSnapshot(int id)
|
||||
{
|
||||
pwp.dbDisplayKey = null;
|
||||
pwp.RestoreSnapshot(id);
|
||||
}
|
||||
|
||||
|
|
|
@ -60,16 +60,6 @@ namespace PersistentWindows.SystrayShell.Properties {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
internal static byte[] app {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("app", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
|
||||
/// </summary>
|
||||
|
@ -89,5 +79,15 @@ namespace PersistentWindows.SystrayShell.Properties {
|
|||
return ((System.Drawing.Icon)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap question {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("question", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -118,13 +118,13 @@
|
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="app" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\app.manifest;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="pwIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\pwIcon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="pwIconBusy" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\pwIconBusy.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="question" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\question.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -148,7 +148,11 @@ namespace PersistentWindows.SystrayShell
|
|||
//private void TimerEventProcessor(Object myObject, EventArgs myEventArgs)
|
||||
public void UpdateMenuEnable(bool enableRestoreFromDB, bool checkUpgrade)
|
||||
{
|
||||
restoreToolStripMenuItem.Enabled = enableRestoreFromDB;
|
||||
if (!enableRestoreFromDB)
|
||||
{
|
||||
//restoreToolStripMenuItem.Enabled = enableRestoreFromDB;
|
||||
restoreToolStripMenuItem.Image = Properties.Resources.question;
|
||||
}
|
||||
|
||||
if (checkUpgrade && enableUpgradeNotice)
|
||||
{
|
||||
|
@ -262,7 +266,7 @@ namespace PersistentWindows.SystrayShell
|
|||
private void CaptureWindowClickHandler(object sender, EventArgs e)
|
||||
{
|
||||
Program.CaptureToDisk();
|
||||
restoreToolStripMenuItem.Enabled = true;
|
||||
restoreToolStripMenuItem.Image = null;
|
||||
}
|
||||
|
||||
private void RestoreWindowClickHandler(object sender, EventArgs e)
|
||||
|
|
|
@ -126,6 +126,9 @@
|
|||
<ItemGroup>
|
||||
<None Include="Resources\pwIcon.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\question.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>copy $(SolutionDir)*.bat $(TargetDir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue