mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Remove unused save dialog and use the proper dialog for error message
This commit is contained in:
-8
@@ -49,7 +49,6 @@
|
||||
WeifenLuo.WinFormsUI.Docking.TabGradient tabGradient6 = new WeifenLuo.WinFormsUI.Docking.TabGradient();
|
||||
WeifenLuo.WinFormsUI.Docking.TabGradient tabGradient7 = new WeifenLuo.WinFormsUI.Docking.TabGradient();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TextureViewer));
|
||||
this.saveTextureDialog = new System.Windows.Forms.SaveFileDialog();
|
||||
this.rightclickMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.showDisabled = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.showEmpty = new System.Windows.Forms.ToolStripMenuItem();
|
||||
@@ -203,12 +202,6 @@
|
||||
toolStripLabel1.Size = new System.Drawing.Size(42, 22);
|
||||
toolStripLabel1.Text = "Actions";
|
||||
//
|
||||
// saveTextureDialog
|
||||
//
|
||||
this.saveTextureDialog.DefaultExt = "dds";
|
||||
this.saveTextureDialog.Filter = "DDS Files (*.dds)|*.dds";
|
||||
this.saveTextureDialog.Title = "Save Texture As";
|
||||
//
|
||||
// rightclickMenu
|
||||
//
|
||||
this.rightclickMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
@@ -1399,7 +1392,6 @@
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.SaveFileDialog saveTextureDialog;
|
||||
private System.Windows.Forms.ContextMenuStrip rightclickMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem showDisabled;
|
||||
private System.Windows.Forms.ToolStripMenuItem showEmpty;
|
||||
|
||||
@@ -3700,7 +3700,7 @@ namespace renderdocui.Windows
|
||||
});
|
||||
|
||||
if(!ret)
|
||||
MessageBox.Show(string.Format("Error saving texture {0}.\n\nCheck diagnostic log in Help menu for more details.", saveTextureDialog.FileName),
|
||||
MessageBox.Show(string.Format("Error saving texture {0}.\n\nCheck diagnostic log in Help menu for more details.", m_SaveDialog.Filename),
|
||||
"Error saving texture", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,9 +129,6 @@
|
||||
<metadata name="toolStripLabel1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="saveTextureDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>136, 17</value>
|
||||
</metadata>
|
||||
<metadata name="rightclickMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>412, 17</value>
|
||||
</metadata>
|
||||
|
||||
Reference in New Issue
Block a user