Skip to content

Commit

Permalink
Clicking the manager log button on the settings page will change the …
Browse files Browse the repository at this point in the history
…manager combobox accordingly
  • Loading branch information
marticliment committed Nov 13, 2024
1 parent 7413dab commit 9bae769
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/UniGetUI/Pages/LogPages/LogPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public BaseLogPage(bool log_level_enabled)
if (log_level_enabled) LoadLogLevels();
}

protected void SelectLogLevelByName(string name)
{
LogLevelCombo.SelectedValue = name;
}

public void ReloadTriggered()
=> LoadLog(isReload: true);

Expand Down
2 changes: 2 additions & 0 deletions src/UniGetUI/Pages/LogPages/ManagerLogsPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public ManagerLogsPage() : base(true)

public void LoadForManager(PackageManager manager)
{
SelectLogLevelByName(manager.DisplayName);

bool IS_DARK = ActualTheme == Microsoft.UI.Xaml.ElementTheme.Dark;
bool verbose = LogLevelCombo.SelectedValue?.ToString()?.Contains(CoreTools.Translate("Verbose")) ?? false;

Expand Down

0 comments on commit 9bae769

Please sign in to comment.