mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-29 01:39:41 +03:00
Eolite: remove code which automatically saved changes to /fd/1/ while app exit as it caused issue on some PCs
git-svn-id: svn://kolibrios.org@6049 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
ae27a12047
commit
7d7d3e178a
@ -22,8 +22,6 @@
|
||||
//patterns
|
||||
#include "..\lib\patterns\history.h"
|
||||
|
||||
byte CMD_ENABLE_SAVE_IMG = false;
|
||||
|
||||
//images
|
||||
#include "imgs\toolbar.txt"
|
||||
#include "imgs\left_p.txt"
|
||||
|
@ -117,7 +117,6 @@ void _SystemDiscs::Get()
|
||||
if (temp_file_count) list.add("/kolibrios/");
|
||||
free(tempbuf);
|
||||
}
|
||||
else if (!strcmp(#sys_discs, "/fd/1/")) CMD_ENABLE_SAVE_IMG = true;
|
||||
}
|
||||
free(devbuf);
|
||||
}
|
||||
|
@ -44,7 +44,6 @@ void settings_dialog()
|
||||
else if (id==6)
|
||||
{
|
||||
ini_set_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,strlen(#path));
|
||||
IF(CMD_ENABLE_SAVE_IMG)ini_set_str stdcall (fd_path_eolite_ini_path, #config_section, "DefaultPath", #path,strlen(#path));
|
||||
break;
|
||||
}
|
||||
else if (id==20) show_dev_name ^= 1;
|
||||
@ -116,24 +115,19 @@ void LoadIniSettings()
|
||||
if(!strcmp(#temp,"off")) label.smooth = false; else label.smooth = true;
|
||||
}
|
||||
|
||||
void ProceedSaveSettings(dword save_path)
|
||||
{
|
||||
ini_set_int stdcall (save_path, #config_section, "ShowDeviceName", show_dev_name);
|
||||
ini_set_int stdcall (save_path, #config_section, "RealFileNamesCase", real_files_names_case);
|
||||
ini_set_int stdcall (save_path, #config_section, "InfoAfterCopy", info_after_copy);
|
||||
ini_set_int stdcall (save_path, #config_section, "FontSize", label.size.pt);
|
||||
ini_set_int stdcall (save_path, #config_section, "TwoPanels", two_panels);
|
||||
ini_set_int stdcall (save_path, #config_section, "LineHeight", files.item_h);
|
||||
ini_set_int stdcall (save_path, #config_section, "WinX", Form.left);
|
||||
ini_set_int stdcall (save_path, #config_section, "WinY", Form.top);
|
||||
ini_set_int stdcall (save_path, #config_section, "WinW", Form.width);
|
||||
ini_set_int stdcall (save_path, #config_section, "WinH", Form.height);
|
||||
}
|
||||
|
||||
void SaveIniSettings()
|
||||
{
|
||||
ProceedSaveSettings(eolite_ini_path);
|
||||
if(CMD_ENABLE_SAVE_IMG) ProceedSaveSettings(fd_path_eolite_ini_path);
|
||||
ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name);
|
||||
ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case);
|
||||
ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy);
|
||||
ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", label.size.pt);
|
||||
ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels);
|
||||
ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h);
|
||||
ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left);
|
||||
ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top);
|
||||
ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width);
|
||||
ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#define TITLE "Eolite File Manager v3.35"
|
||||
#define ABOUT_TITLE "Eolite 3.35"
|
||||
#define TITLE "Eolite File Manager v3.36"
|
||||
#define ABOUT_TITLE "Eolite 3.36"
|
||||
|
||||
#ifdef LANG_RUS
|
||||
?define T_FILE "” ©«"
|
||||
|
Loading…
Reference in New Issue
Block a user