From 0e8990990274022bed870fd77b3b75761934065c Mon Sep 17 00:00:00 2001 From: daleclack Date: Sun, 12 May 2024 09:21:43 +0800 Subject: [PATCH] Update default config --- Gtk4_Reset/src/ui/MyPrefs.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Gtk4_Reset/src/ui/MyPrefs.cpp b/Gtk4_Reset/src/ui/MyPrefs.cpp index 0a70570..144bcb1 100644 --- a/Gtk4_Reset/src/ui/MyPrefs.cpp +++ b/Gtk4_Reset/src/ui/MyPrefs.cpp @@ -318,8 +318,6 @@ static void pics_view_init(MyPrefs *self) gtk_column_view_append_column(GTK_COLUMN_VIEW(self->images_view), self->pics_string_column); - // Default selection - gtk_single_selection_set_selected(self->image_select, 3); } static void update_resource_image(MyPrefs *prefs, const char *resource_id) @@ -402,11 +400,14 @@ static void my_prefs_load_config(MyPrefs *self) self->width = 1024; self->height = 576; self->current_folder_index = 0; - self->current_image_index = 0; + self->current_image_index = 3; self->dock_pos = DockPos::Pos_Left; strncpy(self->image_file_name, ":4", PATH_MAX); } json_file.close(); + + // Update default selection + } // Save configs