diff options
author | lakoliu <99976966+lakoliu@users.noreply.github.com> | 2022-06-12 18:42:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-12 18:42:38 -0700 |
commit | a64af13fb2f6837244359e6a18efb0e24fb56970 (patch) | |
tree | bfab44f00f603268ba8371c841a03357f9cfc889 /src/database.rs | |
parent | f19023ce3917efde04ff37fb77c00f6bd56b2c13 (diff) | |
parent | c8c681ec835dd2bd84215916a85b3ef108be716c (diff) | |
download | Furtherance-a64af13fb2f6837244359e6a18efb0e24fb56970.tar.zst |
Merge pull request #71 from flxzt/translatable-export-options
fix: CSV export options translatable
Diffstat (limited to 'src/database.rs')
-rwxr-xr-x | src/database.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/database.rs b/src/database.rs index 10e4bef..6c2649c 100755 --- a/src/database.rs +++ b/src/database.rs @@ -16,7 +16,6 @@ use chrono::{DateTime, Local}; use directories::ProjectDirs; -use gtk::glib; use rusqlite::{Connection, Result}; use std::convert::TryFrom; use std::fs::create_dir_all; @@ -41,13 +40,9 @@ pub struct Task { Ord, num_derive::FromPrimitive, num_derive::ToPrimitive, - glib::Enum, )] -#[enum_type(name = "SortOrder")] pub enum SortOrder { - #[enum_value(name = "Ascending", nick = "Ascending")] Ascending = 0, - #[enum_value(name = "Descending", nick = "Descending")] Descending, } @@ -86,15 +81,10 @@ impl SortOrder { Ord, num_derive::ToPrimitive, num_derive::FromPrimitive, - glib::Enum, )] -#[enum_type(name = "TaskSort")] pub enum TaskSort { - #[enum_value(name = "StartTime", nick = "Start time")] - StartTime, - #[enum_value(name = "StopTime", nick = "Stop time")] + StartTime = 0, StopTime, - #[enum_value(name = "TaskName", nick = "Task name")] TaskName, } |