Commit Graph

62 Commits

Author SHA1 Message Date
Vladislav Nepogodin a75b1a0280
🚧 fix user services 2023-04-02 21:09:11 +04:00
Vladislav Nepogodin 61357e7261
🚧 fix refresh keyrings in release build
workaround bug that appears only in release build.
looks like the regex becomes optimized out.
2023-04-02 17:31:14 +04:00
Vladislav Nepogodin 231a29c9a9
🧹 we just need to provide window object 2023-04-01 22:36:39 +04:00
Vladislav Nepogodin 5711e106aa
🧹 simplify and move functions to utils 2023-04-01 22:27:48 +04:00
Vladislav Nepogodin 43e6e58500
♻ update translation 2023-04-01 16:56:13 +04:00
Vladislav Nepogodin 0643e73675
🧹 refactor installation dialogs 2023-04-01 00:24:07 +04:00
Vladislav Nepogodin 85566348a2
🧹 refactor dnscrypt button
the basic logic was that we must have both pkg installed,
and service enabled to activate the button.
also on click it doesnt actually enable the service, unless clicked
again
2023-03-31 21:35:39 +04:00
Vladislav Nepogodin 28d2394824
🧹 shorten the scope of unsafe block 2023-03-31 21:01:07 +04:00
Vladislav Nepogodin f72abe78c4
♻ refactor code
associate dialog windows with main window
2023-03-31 20:41:38 +04:00
Vladislav Nepogodin f78623a6c2
👷 install package if not installed 2023-03-31 17:17:10 +04:00
Vladislav Nepogodin 912a1429e4
🧹 useless call to fix_path 2023-03-25 18:42:48 +04:00
Vladislav Nepogodin 1523885d80
👷 compile gresource with cargo instead of depending on meson 2023-03-25 15:38:10 +04:00
Vladislav Nepogodin 4da552eb87
🧹 make clippy happy 2023-03-21 00:29:15 +04:00
Vladislav Nepogodin f89ec4bfd9
👷 update translation for additional pages on locale change 2023-03-21 00:27:10 +04:00
Vladislav Nepogodin 4a2ceb5ca5
♻ update translation 2023-03-20 02:44:15 +04:00
Vladislav Nepogodin 52351e998a
🧹 move default locale logic from main file
This logic needs to be done in localization.rs.

Also expands usage of environment variables: `LC_ALL`,
`LC_MESSAGES`, `LANG`.
2023-03-19 23:39:38 +04:00
Vladislav Nepogodin 49643771ff
🚧 fix compilation 2023-03-19 15:12:23 +04:00
Vladislav Nepogodin fc415e2efb
🧹 cleanup 2023-03-19 04:52:39 +04:00
Vladislav Nepogodin 837f8a5f4b
move to fluent translation system (#57)
use fluent translatation system instead of gettext

fluent makes translations more readable and easy to maintain
translation. fluent provides better handling of plural, genders cases.

ref: https://github.com/projectfluent/fluent/wiki/Fluent-vs-gettext
ref: https://projectfluent.org/
2023-03-19 04:47:51 +04:00
Vladislav Nepogodin 02189262fe
🧹 make clippy happy 2023-03-13 03:51:38 +04:00
Giuseppe Speranza 22a4f56832
pages.rs: fix run of orphans packages (#53)
* pages.rs: fix run of orphans packages

This avoid "error: no targets specified (use -h for help)" when `pacman -Qtdq` is empty.

`pacman -Qtdq` can be started without root, and has a return value other than 0 if it finds no packages.
So if it finds packages, it succeeds and goes to the true condition that it deletes packages.
Otherwise do echo. (echo doesn't require root)

Signed-off-by: Peppe289 <gsperanza204@gmail.com>

* pages.rs: format with rustfmt

Signed-off-by: Peppe289 <gsperanza204@gmail.com>

* 👷 use msg dialog to inform user; use Exec::cmd

---------

Signed-off-by: Peppe289 <gsperanza204@gmail.com>
Co-authored-by: Vladislav Nepogodin <nepogodin.vlad@gmail.com>
2023-03-13 03:38:13 +04:00
Vladislav Nepogodin 5fa5371e1e
🚧 fix compilation 2023-02-19 01:39:13 +04:00
Vladislav Nepogodin 9a4034dc84
🚧 fix layout 2023-02-19 01:12:49 +04:00
Vladislav Nepogodin 245c9ef2ae
👷 add more ids for styling 2023-02-19 01:10:10 +04:00
Vladislav Nepogodin 6c1fd2b120
🧹 cleanup 2023-02-18 20:58:37 +04:00
Vladislav Nepogodin 0d9c30545b
🧹 drop unsafe at main.rs for save json
drop unsafe at main.rs for save json
Cleanup the unsafe blocks
2023-02-18 01:58:49 +04:00
Vladislav Nepogodin c40aee852a
🧹 drop unsafe at pages.rs 2023-02-18 01:12:51 +04:00
Vladislav Nepogodin 33cf5d7fa4
🧹 cleanup 2023-02-17 23:09:39 +04:00
Vladislav Nepogodin 1024bd53cc
🧹 cleanup 2023-02-17 22:24:56 +04:00
Vladislav Nepogodin af13cf75ad
👷 use compressed gresource instead 2023-02-17 22:08:16 +04:00
NextWorks 86ab0c277e
Add Bluetooth Button (#46)
* Add Bluetooth Button

* Format code with rustfmt
2023-02-08 11:50:27 +00:00
Vladislav Nepogodin ac49b56a34
🚧 fix language 2023-01-25 02:32:37 +04:00
Vladislav Nepogodin 6fa39f148f
♻ update year 2023-01-08 21:17:25 +04:00
Vladislav Nepogodin e729b5e1c9
👷 run some functions in new thread 2022-11-27 19:19:05 +04:00
Vladislav Nepogodin 61b4100fb7
👷 add dnscrypt toggle & rankmirrors 2022-11-25 04:26:16 +04:00
Vladislav Nepogodin 96538b8d91
👷 check if applications installed
check if applications installed if not don't display them.
2022-11-17 23:46:04 +04:00
Vladislav Nepogodin de0a7425c7
🧹 cleanup 2022-09-11 03:09:54 +04:00
Vladislav Nepogodin 2d336774a8
🚧 make use of extra field 2022-09-05 02:00:32 +04:00
Vladislav Nepogodin 1868467e5f
🚧 make clippy happy 2022-09-04 18:59:01 +04:00
Vladislav Nepogodin b9504e881e
🚧 unwrap group if double clicked 2022-07-31 19:33:21 +04:00
Vladislav Nepogodin 21647a6014
👷 handle case if no internet connection
display msg to user if trying run online installation with no internet connection
2022-07-30 04:20:50 +04:00
Vladislav Nepogodin 75b89db706
🚧 don't launch pamac with terminal 2022-07-08 21:20:09 +04:00
Vladislav Nepogodin 1bef9e2086
👷 use best available pacman wrapper(also gui) 2022-07-06 22:30:28 +04:00
Vladislav Nepogodin 921831da15
🚧 add new options & fix icons 2022-07-06 01:32:23 +04:00
Vladislav Nepogodin b80bfe5d3f
♻ Make clippy happy 2022-07-05 03:57:55 +04:00
Vladislav Nepogodin e176a74b51
🚧 fix toggle for groups 2022-07-05 03:41:32 +04:00
Vladislav Nepogodin 5be4a75d7b
🚧 add the actual instal/remove script 2022-07-05 01:41:55 +04:00
Vladislav Nepogodin e328e3af7a
👷 add new page 2022-07-04 19:34:50 +04:00
Vladislav Nepogodin e750a943e8
🚧 fix services 2022-06-02 21:35:01 +04:00
Vladislav Nepogodin 80ea978741
Rewrite in Rust 2022-06-02 01:23:20 +04:00