Fixed and closed #384: when renaming a namespace, the selected theme is preserved.
This commit is contained in:
parent
7e203d3c3b
commit
f0268791f6
2 changed files with 7 additions and 3 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
|||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("3.0.1.402")]
|
||||
[assembly: AssemblyFileVersion("3.0.1.402")]
|
||||
[assembly: AssemblyVersion("3.0.1.403")]
|
||||
[assembly: AssemblyFileVersion("3.0.1.403")]
|
||||
|
|
|
@ -415,7 +415,11 @@ namespace ScrewTurn.Wiki {
|
|||
Page.Validate("rename");
|
||||
if(!Page.IsValid) return;
|
||||
|
||||
if(Pages.RenameNamespace(Pages.FindNamespace(txtCurrentNamespace.Value), txtNewName.Text)) {
|
||||
NamespaceInfo nspace = Pages.FindNamespace(txtCurrentNamespace.Value);
|
||||
string theme = Settings.GetTheme(nspace.Name);
|
||||
|
||||
if(Pages.RenameNamespace(nspace, txtNewName.Text)) {
|
||||
Settings.SetTheme(txtNewName.Text, theme);
|
||||
RefreshList();
|
||||
lblRenameResult.CssClass = "resultok";
|
||||
lblRenameResult.Text = Properties.Messages.NamespaceRenamed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue