Browser: Reorder storage inspector columns

Show "domain" and "path" as the first two columns. Since we're showing
all cookies for all domains and all paths, you will probably want to
see the domain and path before the actual cookie name and value.
This commit is contained in:
Jelle Raaijmakers 2022-03-30 00:02:50 +02:00 committed by Linus Groh
commit 62fbf282b1
Notes: sideshowbarker 2024-07-17 16:32:46 +09:00
2 changed files with 10 additions and 10 deletions

View file

@ -29,14 +29,14 @@ void CookiesModel::clear_items()
String CookiesModel::column_name(int column) const
{
switch (column) {
case Column::Name:
return "Name";
case Column::Value:
return "Value";
case Column::Domain:
return "Domain";
case Column::Path:
return "Path";
case Column::Name:
return "Name";
case Column::Value:
return "Value";
case Column::ExpiryTime:
return "Expiry time";
case Column::__Count:
@ -61,14 +61,14 @@ GUI::Variant CookiesModel::data(GUI::ModelIndex const& index, GUI::ModelRole rol
const auto& cookie = m_cookies[index.row()];
switch (index.column()) {
case Column::Name:
return cookie.name;
case Column::Value:
return cookie.value;
case Column::Domain:
return cookie.domain;
case Column::Path:
return cookie.path;
case Column::Name:
return cookie.name;
case Column::Value:
return cookie.value;
case Column::ExpiryTime:
return cookie.expiry_time.to_string();
}