mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-09-13 06:07:30 -04:00
'Not Downloaded' reads as a claim about the file on disk, but the status it names is really an instruction about the future. Telling someone with a finished audiobook to set it 'Not Downloaded' asks them to assert something they know is false, which is why the question keeps coming up. 'Download Pending' says the same thing about intent without saying anything untrue about the file, and stands alone in a dropdown or a support reply where bare 'Pending' would not. The context menu carriers move from "Set Download status to 'X'" to "Mark as 'X'" so the word does not land twice in one breath, with the accelerator on P to stay clear of Downloaded's D. The persisted enum, the --not-downloaded CLI flag and the IsLiberated search tags are unchanged, so scripts and saved quick filters keep working. WinForms status combo boxes grow from 121 to 150px and the better-quality Mark button from 210 to 240px to fit the longer label. Docs carry 'previously "Not Downloaded"' on first mention, since years of Reddit and GitHub answers use the old name. Co-authored-by: rmcrackan <rmcrackan@gmail.com>
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using DataLayer;
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace LibationWinForms.Dialogs;
|
|
|
|
public partial class LiberatedStatusBatchManualDialog : Form
|
|
{
|
|
public LiberatedStatus BookLiberatedStatus { get; private set; }
|
|
|
|
public class liberatedComboBoxItem
|
|
{
|
|
public LiberatedStatus Status { get; set; }
|
|
public string? Text { get; set; }
|
|
public override string? ToString() => Text;
|
|
}
|
|
|
|
public LiberatedStatusBatchManualDialog(bool isPdf) : this()
|
|
{
|
|
if (isPdf)
|
|
this.Text = this.Text.Replace("book", "PDF");
|
|
}
|
|
|
|
public LiberatedStatusBatchManualDialog()
|
|
{
|
|
InitializeComponent();
|
|
this.SetLibationIcon();
|
|
|
|
this.bookLiberatedCb.Items.Add(new liberatedComboBoxItem { Status = LiberatedStatus.Liberated, Text = "Downloaded" });
|
|
this.bookLiberatedCb.Items.Add(new liberatedComboBoxItem { Status = LiberatedStatus.NotLiberated, Text = "Download Pending" });
|
|
|
|
this.bookLiberatedCb.SelectedIndex = 0;
|
|
}
|
|
|
|
private void saveBtn_Click(object sender, EventArgs e)
|
|
{
|
|
if (bookLiberatedCb.SelectedItem is liberatedComboBoxItem item)
|
|
BookLiberatedStatus = item.Status;
|
|
this.DialogResult = DialogResult.OK;
|
|
}
|
|
}
|