Skip to content

Commit

Permalink
Add logger (unused), more interface and language string updates, fix …
Browse files Browse the repository at this point in the history
…some more bugs
  • Loading branch information
CatmanFan committed Jan 23, 2025
1 parent 35d4b81 commit 4a0e69a
Show file tree
Hide file tree
Showing 16 changed files with 460 additions and 309 deletions.
112 changes: 65 additions & 47 deletions FriishProduce/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion FriishProduce/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public void TabChanged(object sender, EventArgs e)
import_game_file.Text = string.Format(Program.Lang.String(import_game_file.Tag.ToString(), Name), (tabControl.SelectedForm as ProjectForm).FileTypeName);
}

import_game_file.Enabled = close_project.Enabled = hasTabs;
import_game_file.Enabled = close_all.Enabled = close_project.Enabled = hasTabs;

// Sync toolbar buttons
// ********
Expand Down Expand Up @@ -404,6 +404,17 @@ private void TabContextMenu_Opening(object sender, CancelEventArgs e)

private void CloseTab_Click(object sender, EventArgs e) { var tab = tabControl.SelectedForm as Form; tab?.Close(); }

private void CloseAll_Click(object sender, EventArgs e)
{
List<Form> list = new();

for (int i = 0; i < tabControl.TabPages.Count; i++)
list.Add(tabControl.TabPages[i].Form as Form);

foreach (var tab in list)
tab.Close();
}

private void About_Click(object sender, EventArgs e) { using var about = new About(); about.ShowDialog(); }

private void MenuItem_Exit_Click(object sender, EventArgs e) => Application.Exit();
Expand Down
Loading

0 comments on commit 4a0e69a

Please sign in to comment.