Skip to content

Commit

Permalink
update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Nov 4, 2024
1 parent a1e6f7c commit 833eb5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion core/Services/Database.vala
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,6 @@ public class Services.Database : GLib.Object {

while (stmt.step () == Sqlite.ROW) {
if (!columns.contains (stmt.column_text (1))) {
print ("Falta: %s: %s\n".printf (table, stmt.column_text (1)));
return false;
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -624,12 +624,13 @@ public class MainWindow : Adw.ApplicationWindow {
var status_page = new Adw.StatusPage ();
status_page.icon_name = "process-error-symbolic";
status_page.title = _("Database Integrity Check Failed");
status_page.description = _("We've detected issues with the database structure that may prevent the application from functioning properly. This may be due to missing tables or columns, likely caused by data corruption or an incomplete update. The database will now be reset to restore normal functionality, and any existing data will be removed. After the reset, you’ll be able to restore any backup you’ve created previously. Thank you for your patience");
status_page.description = _("We've detected issues with the database structure that may prevent the application from functioning properly. This may be due to missing tables or columns, likely caused by data corruption or an incomplete update.\n\nThe database will now be reset to restore normal functionality, and any existing data will be removed.\n\nAfter the reset, you’ll be able to restore any backup you’ve created previously. Thank you for your patience");

var reset_button = new Gtk.Button.with_label (_("Reset Database")) {
halign = CENTER
};
reset_button.add_css_class ("suggested-action");
reset_button.add_css_class ("destructive-action");
reset_button.add_css_class ("pill");

var box = new Gtk.Box (VERTICAL, 12) {
valign = CENTER,
Expand Down

0 comments on commit 833eb5e

Please sign in to comment.