Editor: When an editor forget past tabs.
This commit is contained in:
parent
76ee7b8f5a
commit
8bceeec424
|
@ -9,7 +9,6 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
#include "edi_config.h"
|
||||
|
||||
#include "edi_private.h"
|
||||
|
||||
#define EDI_CONFIG_NAME PACKAGE_NAME
|
||||
|
@ -562,6 +561,12 @@ _edi_project_config_load()
|
|||
_edi_project_config->version = EDI_PROJECT_CONFIG_FILE_VERSION;
|
||||
|
||||
if (save) _edi_project_config_save_no_notify();
|
||||
|
||||
/* opening as an editor */
|
||||
if (!edi_project_mode_get())
|
||||
{
|
||||
_edi_project_config_panel_remove_all();
|
||||
}
|
||||
}
|
||||
|
||||
Eina_List **
|
||||
|
@ -675,6 +680,18 @@ _edi_project_config_panel_remove(int panel_id)
|
|||
_edi_project_config_save_no_notify();
|
||||
}
|
||||
|
||||
void
|
||||
_edi_project_config_panel_remove_all(void)
|
||||
{
|
||||
unsigned int i, count;
|
||||
|
||||
count = eina_list_count(_edi_project_config->panels);
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
_edi_project_config_panel_remove(0);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
_edi_project_config_tab_split_view_count_set(const char *path, int panel_id, int count)
|
||||
{
|
||||
|
|
|
@ -135,6 +135,7 @@ void _edi_project_config_tab_add(const char *path, const char *type,
|
|||
void _edi_project_config_tab_remove(const char *path, Eina_Bool windowed, int panel_id);
|
||||
void _edi_project_config_tab_current_set(int panel_id, int tab_id);
|
||||
void _edi_project_config_panel_remove(int panel_id);
|
||||
void _edi_project_config_panel_remove_all(void);
|
||||
void _edi_project_config_tab_split_view_count_set(const char *path, int panel_id, int count);
|
||||
|
||||
|
||||
|
|
|
@ -1736,7 +1736,7 @@ edi_open(const char *inputpath)
|
|||
evas_object_data_set(win, "background", bg);
|
||||
evas_object_data_set(win, "mainbox", vbx);
|
||||
|
||||
_edi_toolbar_horizontal_set( _edi_project_config->gui.toolbar_horizontal);
|
||||
_edi_toolbar_horizontal_set(_edi_project_config->gui.toolbar_horizontal);
|
||||
|
||||
edi_toolbar_setup();
|
||||
|
||||
|
@ -1772,7 +1772,9 @@ edi_open(const char *inputpath)
|
|||
evas_object_show(win);
|
||||
|
||||
if (!edi_project_mode_get())
|
||||
edi_mainview_open_path(path);
|
||||
{
|
||||
edi_mainview_open_path(path);
|
||||
}
|
||||
|
||||
free(path);
|
||||
return EINA_TRUE;
|
||||
|
|
Loading…
Reference in New Issue