Made imglab show the name of the current image in the title bar.

This commit is contained in:
Davis King 2016-05-31 06:45:02 -04:00
parent 6e0f13ba06
commit 738b4d36af
2 changed files with 3 additions and 4 deletions

View File

@ -20,7 +20,7 @@
#include <dlib/dir_nav.h>
const char* VERSION = "1.2";
const char* VERSION = "1.3";

View File

@ -87,7 +87,6 @@ metadata_editor(
get_display_size(screen_width, screen_height);
set_pos((screen_width-width)/2, (screen_height-height)/2);
set_title("Image Labeler - " + metadata.name);
show();
}
@ -430,7 +429,7 @@ load_image(
try
{
dlib::load_image(img, metadata.images[idx].filename);
set_title(metadata.name + ": " +metadata.images[idx].filename);
}
catch (exception& e)
{
@ -458,7 +457,7 @@ load_image_and_set_size(
try
{
dlib::load_image(img, metadata.images[idx].filename);
set_title(metadata.name + ": " +metadata.images[idx].filename);
}
catch (exception& e)
{