Emveepee.MainWindow.UpdateRecentLogs C# (CSharp) Method

UpdateRecentLogs() private method

private UpdateRecentLogs ( object o, EventArgs args ) : void
o object
args System.EventArgs
return void
        void UpdateRecentLogs(object o, EventArgs args)
        {
            for (int i = 0; i < max_history_count; i++) {
                Gtk.Action action = group.GetAction ("RecentLogs" + i);
                if (i < history.LogFiles.Count) {
                    LogInfo info = history.LogFiles [i];
                    action.Label = "_" + i + ": " + info.Caption;
                    action.Tooltip = info.Filename;
                    action.Visible = true;
                } else
                    action.Visible = false;
            }
        }