Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit d283b0b

Browse files
committed
Comments update
1 parent 314b9a2 commit d283b0b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

appshell/browser/root_window_gtk.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ void SaveWindowState(GtkWindow* window) {
7171
top = g_key_file_get_integer(key_file, "position", "top", &error);
7272
width = g_key_file_get_integer(key_file, "size", "width", &error);
7373
height = g_key_file_get_integer(key_file, "size", "height", &error);
74-
// If any value can not be readed, save defaults
74+
// If any value can not be readed, restore defaults
7575
if (left == 0 || top == 0 || width == 0 || height == 0) {
7676
left = 1;
7777
top = 1;
7878
width = 800;
7979
height = 600;
8080
}
81-
// If we can not load the file, save defaults
81+
// If we can not load the file, set defaults
8282
} else {
8383
left = 1;
8484
top = 1;
@@ -100,6 +100,7 @@ void SaveWindowState(GtkWindow* window) {
100100
}
101101

102102
void LoadWindowState(GtkWindow* window) {
103+
// Default values if It is not possible to load the key file
103104
gint left = 1;
104105
gint top = 1;
105106
gint width = 800;
@@ -117,7 +118,7 @@ void LoadWindowState(GtkWindow* window) {
117118
width = g_key_file_get_integer(key_file, "size", "width", &error);
118119
height = g_key_file_get_integer(key_file, "size", "height", &error);
119120
maximized = g_key_file_get_boolean(key_file, "state", "maximized", &error);
120-
// If any value can not be readed, load defaults
121+
// If any value can not be readed, set defaults again
121122
if (left == 0 || top == 0 || width == 0 || height == 0) {
122123
left = 1;
123124
top = 1;

0 commit comments

Comments
 (0)